2019-03-28 12:31:15 -04:00
|
|
|
[float]
|
|
|
|
# fractional
|
2019-03-29 10:51:23 -04:00
|
|
|
flt1 = +1.0 # Comment
|
|
|
|
flt2 = 3.1415 # Comment
|
|
|
|
flt3 = -0.01 # Comment
|
2019-03-28 12:31:15 -04:00
|
|
|
|
|
|
|
# exponent
|
2019-03-29 10:51:23 -04:00
|
|
|
flt4 = 5e+22 # Comment
|
|
|
|
flt5 = 1e6 # Comment
|
|
|
|
flt6 = -2E-2 # Comment
|
2019-03-28 12:31:15 -04:00
|
|
|
|
|
|
|
# both
|
2019-03-29 10:51:23 -04:00
|
|
|
flt7 = 6.626e-34 # Comment
|
|
|
|
flt8 = 224_617.445_991_228 # Comment
|
2019-03-28 12:31:15 -04:00
|
|
|
# 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
|