Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
code:numberformats [2017/12/09 17:20] – created Igor Yefmov | code:numberformats [2022/04/04 23:32] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
Many numbers do not fit into a single byte [0..255] range and for those there are conventions throughout our API on how to encode them. | Many numbers do not fit into a single byte [0..255] range and for those there are conventions throughout our API on how to encode them. | ||
+ | |||
+ | ===== BYTE ===== | ||
+ | |||
+ | An 8-bit unsigned or signed value representing a decimal range of '' | ||
+ | |||
+ | A couple of examples (decimal = bits): | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
===== UFIX 8.8 ===== | ===== UFIX 8.8 ===== | ||
- | This is a 16-bit value in which 8 MSB represent the unsigned integer part of the number and the 8 LSB represent the fractional part. The fractional value is the '' | + | This is a 16-bit value in which 8 MSB represent the unsigned integer part of the number and the 8 LSB represent the fractional part. The fractional value is the '' |
+ | |||
+ | Numbers in this format represent a decimal range of '' | ||
A few examples (decimal = MSB, LSB): | A few examples (decimal = MSB, LSB): | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' |