Please see below for usage notes and the link to my article discussing fixed-point arithmetic.
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
This site contains the representation of my 16.16 fixed point number format including some basic operations on them.
Please refer to my article Understanding and implementing fixed point numbers for an detailed discussion.
To specify a decimal value, there are two options:
After a decimal value is updated, the GUI updates automatically the other representations (like the hexadecimal one).
Then you can perform the basic operations Add, Sub, Mul and Div in fixed-point arithmetic on both values or operations Floor, Ceil and Round in fixed-point arithemtic on the first operand solely.
The result is then displayed below.
Because of the 16.16 format, the decimal values shall be in range [-32768, 32.767]. This applies also to the result value - all other values will not give valid results! (E.g. the result of 20000 * 4 will be out of range, although both input values are valid.)
2017/04/18: Initial release.