Basic Use To make a new number, a simple initialization
suffices: var foo = 0; // or whatever number you want foo = 1;
//foo = 1 foo += 2; //foo = 3 (the two gets added on) foo -= 2;
//foo = 1 (the two gets removed) Number literals define the
number value. In particular: They appear as a set of digits of
varying length. Negative literal numbers have a minus sign
before the set of digits. Floating point literal numbers contain
one decimal point, and may optionally use the E notation with
the character e. An integer literal may be prepended with "0",
to indicate that a number is in base-8. (8 and 9 are not octal
digits, and if found, cause the integer to be read in the normal
base-10). An integer literal may also be found with "0x", to
indicate a hexadecimal number. The Math Object Unlike strings,
arrays, and dates, the numbers aren't objects. The Math object
provides numeric functions and constants as methods and
properties. The methods and properties of the Math object are
referenced using the dot operator in