itFloat

Type: TInputType | Unit: EgStrParser

Accepts a floating-point number, parsed as Double.

Accepted formats

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.56 may be 1234.56 in English notation or a typing error). Thousands grouping is not accepted. Spaces are removed before parsing.

Valid:   3.14    -0.5    1,99    1.5e10    42
Invalid: 1,000.00    1,234.56    1.234,56

An overflow (absolute value above about 1.8E308) gives ERR_INVALID_FORMAT. An underflow (absolute value below about 5E-324, the smallest Double) is accepted and stored as 0. NAN and INF are not numbers and give ERR_INVALID_FORMAT.

Values and SQLValues

Values holds the locale-aware form produced by FloatToStr. SQLValues always uses . as the decimal separator.

Input: 1,5   ->   Values[0]:    1.5  (en-US locale)
                  SQLValues[0]: 1.5

List separator

Because , is a decimal separator, it does not separate list items for itFloat; only ; does.

Input: 1.5;2.5   ->   otList, SQLExpression: IN (1.5, 2.5)

Range

Input: 0.0~1.0   ->   otRange, SQLExpression: BETWEEN 0 AND 1

The left bound must not be greater than the right bound; otherwise ERR_INVALID_RANGE is returned.

See Also

(C) 2026 Easygate, Lda