Literals/Floating point: Difference between revisions

Content added Content deleted
(Add Factor example)
Line 352: Line 352:
0/0. ! not-a-number
0/0. ! not-a-number
! hexadecimal, octal, and binary float literals are supported.
! hexadecimal, octal, and binary float literals are supported.
! they require a base 2 exponent followed by p or P.
! they require a base 2 exponent preceded by p or P.
0x1.0p3 ! 8.0
0x1.0p3 ! 8.0
-0x1.0P-3 ! -0.125
-0x1.0P-3 ! -0.125