Changes

Jump to: navigation, search

JavaScript Math Object

1 byte removed, 14:58, 15 April 2009
no edit summary
The JavaScript Math object provides a collections collection of mathematical constants and methods for performing such tasks as generating random numbers, rounding, obtaining values such as PI and performing calculations.
== JavaScript Math Object Methods ==
The first thing to be aware of with the Math object is that an instance of the object already exists. It is not necessary, therefore, to create a new instance using the ''new'' keyword. You can simply access the methods and properties by referencing ''Math''.
The methods and properties of the JavaScript Math object can be accessed jsut just as with any other objects (see [[JavaScript Object Basics]] for more information). For example we can obtain the value of Pi:
<pre>

Navigation menu