Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER->Compiler Data Formats->float

These are 32 bits wide.

If a global variable fVar is declared as float, then the least significant byte is located at address _fVar and the most significant byte is located at address _fVar+3.

The format for floats is in accordance with IEEE754 single format:

Sign:bit position 31 (1 bit)
Exponent:bit positions 30 to 23 (8 bits)
Mantissa:bit positions 22 to 0 (24 bits  the most significant bit is inferred)