JavaScript Number Object Reference
Number Object Methods
FF: Firefox, IE: Internet Explorer
| Method |
Description |
FF |
IE |
| toExponential |
Convert the value of the object into an exponential
notation |
1.0 |
5.5 |
| toFixed |
Round a Number to the specified number of decimals |
1.0 |
5.5 |
| toPrecision |
Converts the value of the object into an exponential
notation if it has more digits than specified |
1.0 |
5.5 |
| toString |
Converts a Number object to string |
1.0 |
4.0 |
| valueOf |
Returns the primitive value of a Number object |
1.0 |
4.0 |
Math Object Properties
| Property |
Description |
FF |
IE |
| constructor |
A reference to the function that created the object |
1.0 |
4.0 |
| MAX_VALUE |
Largest number that is less than infinity |
1.0 |
4.0 |
| MIN_VALUE |
Smallest number that is greater than negative infinity |
1.0 |
4.0 |
| NaN |
Not a number |
1.0 |
4.0 |
| NEGATIVE_INFINITY |
Out of range negative number |
1.0 |
4.0 |
| POSITIVE_INFINITY |
Out of range positive number |
1.0 |
4.0 |
| prototype |
Allows you to add properties and methods to the object |
1.0 |
4.0 |
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|