Convert IEEE-754 32-bit floating point value to fixed point 16.16 values.
![Bean](https://forums.parallax.com/uploads/userpics/855/n505WZVEIPHT1.jpg)
I needed some code to convert an IEEE-754 32-bit floating value to fixed point so I could sum them.
I couldn't find any code, so I wrote a routine to do it.
Here it is...
P.S. The values are coming from a Trimble Resolution-T GPS.
They represent the quantization offset of the 1 PPS signal.
I need to sum them to get a total offset over a period of time.
Can you believe I actually get paid to do this stuff ! Fun, Fun, Fun...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com
I couldn't find any code, so I wrote a routine to do it.
Here it is...
P.S. The values are coming from a Trimble Resolution-T GPS.
They represent the quantization offset of the 1 PPS signal.
I need to sum them to get a total offset over a period of time.
Can you believe I actually get paid to do this stuff ! Fun, Fun, Fun...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com