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 |
Prev | Home | Next |
float | Up | Floating point |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |