RoboPro 48-bits float
Verfasst: 30 Sep 2019, 10:00
How is the 48-bits float (6 bytes) organized and serialized in the .rpp?
In the RoboPro .rpp (XML) file a float has been saved (serialized) as 3 values (as strings), namely: value0, value1 and value2; each value represent 2 bytes.
This is datatype 11.
But how to come from the value0, value1, value2 to a C# or C/C++ Double type.
From RoboPro help:
The precision of arithmetic operations is 48 bits with a 32 bit mantissa. This corresponds to a precision of slightly more than 9 decimal digits.
So this float is not an old Pascal 48-bits real type, because that has a 40 bits mantissa.
https://stackoverflow.com/questions/319 ... nt-integer
http://www.shikadi.net/moddingwiki/Turbo_Pascal_Real
How is the float organized and how is it serialized in the .rpp?
In the RoboPro .rpp (XML) file a float has been saved (serialized) as 3 values (as strings), namely: value0, value1 and value2; each value represent 2 bytes.
This is datatype 11.
But how to come from the value0, value1, value2 to a C# or C/C++ Double type.
From RoboPro help:
The precision of arithmetic operations is 48 bits with a 32 bit mantissa. This corresponds to a precision of slightly more than 9 decimal digits.
So this float is not an old Pascal 48-bits real type, because that has a 40 bits mantissa.
https://stackoverflow.com/questions/319 ... nt-integer
http://www.shikadi.net/moddingwiki/Turbo_Pascal_Real
How is the float organized and how is it serialized in the .rpp?