In the C language, programmers need to be aware of the many and various types of numeric value. JavaScript hides a great deal of this complexity by presenting a Number data type.
However, internally it still uses 32 bit integer values, 16 bit integer values, signed and unsigned integers and floating point values.
Arithmetic type values are used with arithmetic operators to build arithmetic expressions.
Characters are maintained as single character strings, but can be represented numerically by converting them to their Unicode code point value using the method String.charCodeAt(). You can convert back again using the String.fromCharCode() method.
See also: | String.charCodeAt(), String.fromCharCode() |
Prev | Home | Next |
Arithmetic operator | Up | Array index delimiter ([ ]) |
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. |