Assembler Reference
3-22 Copyright © 2000, 2001 ARM Limited. A ll rights reserved. ARM DUI 0068B
3.6.5 Floating-point l iterals
Floating-point literals can take any of the following forms:
{-}digitsE{-}digits
{-}{digits}.digits{E{-}digits}
0xhexdigits
&hexdigits
digits
are sequences of characters using only the digits 0 to 9. You can write
E
in uppercase or lowercase. These forms correspond to normal
floating-point notation.
hexdigits
are sequences of characters using only the digits 0 to 9 and the letters
A to F or a to f. These forms correspond to the internal representation of
the numbers in the c omputer. Use these forms to enter infinities a nd
NaNs, or if you want to be sure of the exact bit patterns you are using.
The range for single-precision floating point values is:
maximum 3.40282347e+38
minimum 1.17549435e38.
The range for double-precision floating point values is:
maximum 1.79769313486231571e+308
minimum 2.22507385850720138e308.
Examples
DCFD 1E308,-4E-100
DCFS 1.0
DCFD 3.725e15
LDFS 0x7FC00000 ; Quiet NaN
LDFD &FFF0000000000000 ; Minus infinity