summaryrefslogtreecommitdiff
path: root/tests/interpretation/float.pom
blob: e898f390d1b248ce0ef436d6dd4f2470b06490c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[good]

decimal.a = 3
decimal.b = 3.0
minus_decimal.a = -3
minus_decimal.b = -3.0
plus_decimal.a = +3
plus_decimal.b = +3.0

exp.a = 3e5
exp.b = 3.0E+5

minus_exp.a = -3e5
minus_exp.b = -3.0E+5

plus_exp.a = +3e5
plus_exp.b = +3.0E+5

exp_leading_zero.a = 3.00000000000e-00000001
exp_leading_zero.b = 0.3

long.a = 1375439875498279318427598327459872398475983274985723984570928340981230498123409578654987
long.b = 1.3754398754982793e+87

inf.a = 1e999
inf.b = 5e+01000

[bad]

leading_space = " 3"
trailing_space = "3 "
no_digit_before_decimal = .3
minus_no_digit_before_decimal = -.3
plus_no_digit_before_decimal = +.3
hex_float = 0x1.0p3
plus_plus = ++0
plus_minus = +-0
minus_plus = -+0
minus_minus = --0
nan = nan
inf = inf
NaN = NaN
Infinity = Infinity
terminal_dot = 8.
dot_followed_by_e = 8.e3