JavaScript Number : Object
A numerical value. JavaScript stores numbers as 64 bit (8 byte) double precision floats.
Coerces value to a number. Usually this method is not necessary since JavaScript will automatically coerce a value to a number when it is used in a number context. +value is another way to coerce a value to a number. This coercion is very strict and will return NaN if the specified value cannot be converted to a Number. parseInt and paseFloat can also be used to convert a String to a Number.
Example:
RunResults:
Instance Methods
Returns a string representation of this in scientific notation. If fractionalDigits is specified, that many digits will follow the '.'.
Example:
RunResults:
Returns a string representation of this with fractionalDigits following the '.'.
Example:
RunResults:
toLocaleString() : String
Returns a string representation of this that conforms to the number format specification of the current locale.
Example:
RunResults:
Number Properties
Copyright © JavaScripture.com