decimal:
-?\d+('\d+)*(\.(\d+')*\d+)?(E-?\d+)?
hexadecimal:
%[0-9A-F]+
There are only decimal (base-10)
and hexadecimal (base-16) numbers in Eas,
no binary (base-2), octal (base-8), or others.
Hexadecimal:
%D3
(only uppercase allowed
for readability reasons)
Decimal numbers (and these only)
support all of the following:
Negative:
-12
Fraction:
3.5
Optional
grouping of long numbers:
12'345'678 = 12345678
1'357.024'68 = 1357.02468
Exponent aka scientific notation:
14E3 = 14'000
2.3E-5 = 0.000'023
(only uppercase allowed
for readability reasons)
Eas:
%FE
32'418.312'54
16E6
Pascal:
$fE
32418.31254
16000000
PHP, JS, C/C++:
0xfE
32418.31254
16000000