Numeric literals
Numeric literals define values with a decimal part in an expression.
Syntax
[
+|
-]
digit[...]
. digit[...]
[
{
e|
E}
[
+|
-]
digit[...]
]
- digit is a digit character from '0' to '9'.
- Note that the decimal separator is always a dot, independently from DBMONEY.
- The E notation can be used to specify the exponent.
Usage
Numeric/decimal literals in base-10 notation, without blank spaces and commas, with a decimal part after a dot.
Numeric literals can be used to specify values for DECIMAL(P,S)
, MONEY(P,S)
, FLOAT
and SMALLFLOAT
data types.
Example
MAIN
DEFINE n DECIMAL(10,2)
LET n = 12345.67
LET n = -1.23456e-10
END MAIN