|
Answer» The NUMBER object contains only the default methods that are a part of every object's definition.
- toExponential(): Forces a number to display in EXPONENTIAL notation, even if the number is in the range in which JavaScript normally uses standard notation.
- toFixed(): Formats a number with a SPECIFIC number of DIGITS to the right of the decimal.
- toLocaleString(): Returns a string value version of the current number in a format that may vary ACCORDING to a browser's local settings.
- toPrecision(): Defines how many total digits (including digits to the left and right of the decimal) to display of a number.
- toString(): Returns the string representation of the number's value.
- valueOf(): Returns the number's value.
The Number object contains only the default methods that are a part of every object's definition.
|