Floating constant (Definition)

A floating constant is a literal floating point value.

A floating constant is a literal numeric value representing a floating-point number. Generally these would appear in comparison expressions, assignments or arithmetic expressions.

There may be some loss of precision with extremely long numbers or floating point values that are very small. In addition, some interpreters may perform rounding slightly differently. Fully ECMA compliant implementations should conform to the IEEE 754 specifications and therefore should be consistent with one another.

See also:Constant, Constant expression, Floating point, IEEE 754, Number, Numeric literal