mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
5518b008b8
Original: a48fdd6a29
23 lines
No EOL
516 B
TOML
23 lines
No EOL
516 B
TOML
[float]
|
|
# fractional
|
|
flt1 = +1.0 # Comment
|
|
flt2 = 3.1415 # Comment
|
|
flt3 = -0.01 # Comment
|
|
|
|
# exponent
|
|
flt4 = 5e+22 # Comment
|
|
flt5 = 1e6 # Comment
|
|
flt6 = -2E-2 # Comment
|
|
|
|
# both
|
|
flt7 = 6.626e-34 # Comment
|
|
flt8 = 224_617.445_991_228 # Comment
|
|
# infinity
|
|
sf1 = inf # positive infinity
|
|
sf2 = +inf # positive infinity
|
|
sf3 = -inf # negative infinity
|
|
|
|
# not a number
|
|
sf4 = nan # actual sNaN/qNaN encoding is implementation specific
|
|
sf5 = +nan # same as `nan`
|
|
sf6 = -nan # valid, actual encoding is implementation specific |