Shop OBEX P1 Docs P2 Docs Learn Events
Convert IEEE-754 32-bit floating point value to fixed point 16.16 values. — Parallax Forums

Convert IEEE-754 32-bit floating point value to fixed point 16.16 values.

BeanBean Posts: 8,129
edited 2008-05-13 15:17 in General Discussion
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
Sign In or Register to comment.