Scalar types with unit (#25 - #26)

25. Float with unit

The internal storage of the value that is transmitted is always in the SI (or standard) unit, except for money where the display unit is used. The value is preceded by a one-byte unit type (see the table above) and a one-byte (or two-byte in case of Money or three-byte in case of the MoneyPerUnit) display type (see Display types). As an example: suppose the unit indicates that the type is a length, whereas the display type indicates that the internally stored value 60000.0 should be displayed as 60.0 km, this is coded as follows:

|25|16|11|0x47|0x6A|0x60|0x00|

26. Double with unit

The internal storage of the value that is transmitted is always in the SI (or standard) unit, except for money where the display unit is used. The value is preceded by a one-byte unit type (see the table above) and a one-byte (or two-byte in case of Money or three-byte in case of the MoneyPerUnit) display type (see Display types). As an example: suppose the unit indicates that the type is a length, whereas the display type indicates that the internally stored value 60000.0 should be displayed as 60.0 km, this is coded as follows:

|26|16|11|0x47|0x6A|0x60|0x00|0x00|0x00|0x00|0x00|