Numeric Literal

Syntax
Number:
( [ 0 ] [ Xx ] [ _0-9a-fA-F ]+)
|( [ 0 ] [ Bb ] [ _0-1 ]+)
|( [ 0 ] [ Oo ] [ _0-7 ]+)
|( [ 0-9 ] [ _0-9 ]* ( \.[ _0-9 ]+ ){0,1} ( [ Ee ] [ \+\- ]{0,1} [ 0-9_ ]* ){0, 1} )

Literals*ExampleExponentiation
Decimal integer123_456N/A
Hex integer0xff1N/A
Octal integer0o72N/A
Binary integer0b1111_0100N/A
Floating point12.23e-5Optional

*: All number literals allow _ as a visual separator: 1_234.0E+18
*: All characters are case insensitive.