Type: TInputType |
Unit: EgStrParser
Accepts a fixed-point number, parsed as Currency (4
decimal places).
A number with an optional sign and an optional exponent. Either
. or , is accepted as the decimal separator,
but not both in the same token: a token with both is
rejected with ERR_INVALID_FORMAT,
because its meaning is ambiguous (1,234.5 may be 1234.5 in
English notation or a typing error). Thousands grouping is not accepted.
Spaces are removed before parsing.
Valid: 3.14 -0.5 1,99 42 0.0001 3e4 (= 30000)
Invalid: 1,000.00 1,234.5 1.234,5
Values
holds the locale-aware form produced by CurrToStr. SQLValues
always uses . as the decimal separator, whatever the
locale. Both are written without trailing zeros (1.50 ->
1.5, 100.00 -> 100).
Input: 1,99 -> Values[0]: 1.99 (en-US locale)
SQLValues[0]: 1.99
Because , is a decimal separator, it does
not separate list items for itDecimal;
only ; does.
Input: 1.5,2.5 -> otInvalid, ERR_INVALID_FORMAT (the token has both . and ,)
Input: 1.5;2.5 -> otList, SQLExpression: IN (1.5, 2.5)
Input: 1.00~9.99 -> otRange, SQLExpression: BETWEEN 1 AND 9.99
The left bound must not be greater than the right bound; otherwise ERR_INVALID_RANGE
is returned.