5.2.5 Float Directive
The .float value1[, ...,
valuen] directive assembles the specified
comma-separated single-precision (32-bit) floating-point constants into consecutive
addresses in the current section. Floating point numbers are stored in IEEE format (see
Floating-Point Numbers) as little-endian
values. This directive has the same effect as .single.
This directive forces alignment to 4 bytes (that is, it adds padding if necessary) to its
natural alignment on PIC32M devices. Note that the .2byte,
.4byte, and .8byte directives do not force
alignment.
The following statements are
equivalent:
.float 12345.67
.float 1.234567e4
.float 1.234567e04
.float 1.234567e+04
.float 1.234567E4
.float 1.234567E04
.float 1.234567E+04Alternatively, you can specify the hexadecimal encoding of a
floating-point constant. The following statements are equivalent and encode the value
12345.67 as a 32-bit double-precision
number:
.float 0e:4640E6AE
.float 0f:4640E6AE
.float 0d:4640E6AE