Literals/Floating point: Difference between revisions
Content deleted Content added
imported>Arakov |
m →{{header|Wren}}: Changed to Wren S/H |
||
Line 1,736: | Line 1,736: | ||
All numbers are instances of the built-in Num class which is always 8 bytes in size. Integers are really just floating point numbers which have no decimal part. |
All numbers are instances of the built-in Num class which is always 8 bytes in size. Integers are really just floating point numbers which have no decimal part. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var f = 123.45 |
||
var g = 0.12345 // .12345 not allowed |
var g = 0.12345 // .12345 not allowed |
||
var h = 1.234e2 |
var h = 1.234e2 |