This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CCSTUDIO-MSP: How to specify floating point constants in hex?

Part Number: CCSTUDIO-MSP

Tool/software: TI C/C++ Compiler

I'm trying to specify a single-precision floating point NaN default in flash, eg. const float value = 0x7FA00000. The compiler is treating the hex value as an integer and converting it to a floating huge floating point value. How do I tell the compiler to use the hex value as is?