Content deleted Content added
m →Math: proper wording |
|||
Line 606:
| <tt>Math.pow(-3, 2)</tt> || align=center|9 || [[Exponentiation]] (raised to the power of): <tt>Math.pow(x, y)</tt> gives x<sup>y</sup>
|-
| <tt>Math.random()</tt> || align=center|e.g. 0.17068 || [[Pseudorandom]] number between 0 (inclusive) and 1 (exclusive)
|-
| <tt>Math.round(1.5)</tt> || align=center|2 || Round to the nearest integer; half fractions are rounded up (e.g. 1.5 rounds to 2)
|