Difference between revisions of "Literals Reference"
Jump to navigation
Jump to search
m
→Float Literals
imported>Henning m |
imported>Perdev m (→Float Literals) |
||
Line 53: | Line 53: | ||
Float literals are sequences of digits (0 through 9) optionally prefixed by a minus sign, and followed by a dot and another sequence of digits. Floats are 32-bits in size, and have a range of 1.175494351 E – 38 to 3.402823466 E + 38 with 7 significant digits. | Float literals are sequences of digits (0 through 9) optionally prefixed by a minus sign, and followed by a dot and another sequence of digits. Floats are 32-bits in size, and have a range of 1.175494351 E – 38 to 3.402823466 E + 38 with 7 significant digits. They match the [http://en.wikipedia.org/wiki/IEEE_floating_point#Basic_formats IEEE standard single type] (23+1 significand bits and 8 exponent bits). | ||
=== Examples === | === Examples === |