Branch
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
NaN Inf
0xBadFace
0xf4.42
0x21.2p2
0xffP+4
0xeap-1
42
42L
3.14159
3.2E4
4e+8
0.1e-12
2i
4.1i
1e-2i
----------------------------------------------------
[
["number", "NaN"], ["number", "Inf"],
["number", "0xBadFace"],
["number", "0xf4.42"],
["number", "0x21.2p2"],
["number", "0xffP+4"],
["number", "0xeap-1"],
["number", "42"],
["number", "42L"],
["number", "3.14159"],
["number", "3.2E4"],
["number", "4e+8"],
["number", "0.1e-12"],
["number", "2i"],
["number", "4.1i"],
["number", "1e-2i"]
]
----------------------------------------------------
Checks for hexadecimal, decimal and complex numbers.