These directives allocate memory in the current section of the file, and define the initial contents of that memory using a floating-point value.
Syntax
.floatvalue [, value]…
.doublevalue [, value]…
Description
.float
The .float directive allocates 4 bytes
of memory per argument, and stores the values in IEEE754
single-precision format.
.double
The .double directive allocates 8 bytes of memory per
argument, and stores the values in IEEE754 double-precision
format.
value
value is a
floating-point literal.
Operation
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
B7-13 Aliases for the floating-point data definition directives
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.