|Home > armclang Integrated Assembler > Floating-point data definition directives|
These directives allocate memory in the current section of the file, and define the initial contents of that memory using a floating-point value.
.float directive allocates 4 bytes
of memory per argument, and stores the values in IEEE754
.double directive allocates 8 bytes of memory per
argument, and stores the values in IEEE754 double-precision
value is a
If a floating-point value cannot be exactly represented by the storage
format, it will be rounded to the nearest representable value using the
round to nearest, ties to even rounding mode.
The following aliases for these directives are also accepted:
Table 9-13 Aliases for the floating-point data definition directives
float_pi: .float 3.14159265359 double_pi: .double 3.14159265359