Numeric literals are constant numeric values expressed in Decimal, Hexadecimal or Octal notation.

Numeric values can be integer or floating point.

Floating point values can be specified with exponential notation.

Hexadecimal values must always be integers, thus:

`0xFF``0XABCD`

Octal values must always be integers, must start with a zero and contain only the characters 0-7.

The standard does not mandate any particular rounding technique but recommends the use of IEEE 754 standard numeric computation. This standard has been in existence for some time now and is likely to be the foundation numeric computation standard in most platforms.

Prev | Home | Next |

Number.valueOf() | Up | Numerical limits |

JavaScript Programmer's Reference, Cliff WoottonWrox Press (www.wrox.com)Join the Wrox JavaScript forum at p2p.wrox.comPlease report problems to support@wrox.com© 2001 Wrox Press. All Rights Reserved. Terms and conditions. |