signal_encoding_physical_value: Can not handle Floating-point arithmetic
malneni opened this issue · comments
Hello,
I am not able to parse my LDF file that contains signal representation value in floating point format like 1e-005 instead of float value
Ex:
HighCurrent {
physical_value, 0, 1023, 1e-005, 0, "Ohm" ;
}
Could you check the feature/float-scientific-notation branch, whether or not it's working as intended? I did a few tests and it seems to work, keep in mind that internally it will be converted into a floating point number and for example in the exported dictionary the notation might be different.
In the LDF standard the definition of real_or_integer
is:
A real or integer number. A real number is always in decimal and has an embedded decimal
point.
Regardless I don't see this interfering with anything, but you might want to check other tools as well, because if those don't support it then you may need to change the LDFs.
This fix seems to work. Now I can parse LDF file without any problem
Feature has been released under 0.11.1.