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/CC2640: number of decimal support in float variable

Part Number: CC2640


Tool/software: TI C/C++ Compiler

I would like to confirm how many decimal point can be supported for this TI platform ?

I am using this for GPS location and try to use 6 decimal.

For the positive number, it is fine.  But for negative, it show incorrect decimal value.

e.g.  

float value;

value = -70.567890;

In CCS debugger, when I examine the value, it display as 

Default:-70.5678864
Hex:0xC28D22C2
Decimal:-70.5678864
Octal:030243221302
Binary:11000010100011010010001011000010b