Literals/Floating point: Difference between revisions
Content deleted Content added
Add Factor example |
m →{{header|Factor}}: fix typo |
||
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 |
! 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 |