Difference between revisions of "Literals Reference"

151 bytes added ,  15:54, 13 January 2014
m
no edit summary
imported>Henning
m
 
imported>Egocarib
m
 
(One intermediate revision by one other user not shown)
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 significant bits and 8 exponent bits).


=== Examples ===
=== Examples ===
Anonymous user