This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Float reads NAN after a write

Hi

I noticed a strange effect with a floating point register and wonder if this is normal. Initially on reading the register I found it contained a value of 3.15917e-38. The C routines obviously found this to be an acceptable floating point number to read. I then tried writing exactly the same number to the register and the following read now produces a NAN value! According to the documentation this value is just within the acceptable range for a single precision floating point number so I can't understand why this is happening. Any help would be appreciated.

0