number_feature.test
491 Bytes
0b1111_0000
0o754_123
0xBadFace
42
42_000
3.14159
2e6
3.241_753E-7
0.7e+15
----------------------------------------------------
[
["number", "0b1111_0000"],
["number", "0o754_123"],
["number", "0xBadFace"],
["number", "42"],
["number", "42_000"],
["number", "3.14159"],
["number", "2e6"],
["number", "3.241_753E-7"],
["number", "0.7e+15"]
]
----------------------------------------------------
Checks for binary, octal, hexadecimal and decimal numbers.