Number Literals
A number literal is any valid number in a supported notation:
-
In SQL, for numbers in the standard decimal notation, the decimal point is always represented by period character (‘
.
’, full-stop, dot);thousands are not separated.Inclusion of commas, blanks, etc. will cause errors. -
Exponential notation is supported.For example,
0.0000234
can be expressed as2.34e-5
.However, while the literal0.0000234
is aNUMERIC(18,7)
, the literal2.34e-5
is aDOUBLE PRECISION
. -
Hexadecimal notation — see below.
The format of the literal decides the type (<d>
for a decimal digit, <h>
for a hexadecimal digit):
Format | Type |
---|---|
|
|
|
|
|
For backwards compatibility, some values of 19 digits are mapped to |
|
|