JavaScript syntax: Difference between revisions

Content deleted Content added
GreenC bot (talk | contribs)
Reformat 2 archive links. Wayback Medic 2.5
Fixed/updated links
Line 560:
| <tt>Math.ceil(1.1)</tt> || align=center|2 || Ceiling: [[rounding|round]] up to smallest integer ≥ argument
|-
| <tt>Math.cos(Math.PI/4)</tt><tt></tt> || align=center|0.70711 || [[Trigonometric functions#cosine|Cosine]]
|-
| <tt>Math.exp</tt>(1) || align=center|2.7183 || [[Exponential function]]: {{mvar|e}} raised to this power
Line 578:
| <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)
|-
| <tt>Math.sin(Math.PI/4)</tt> || align=center|0.70711 || [[Trigonometric functions#sine|Sine]]
|-
| <tt>Math.sqrt(49)</tt> || align=center|7 || Square root
|-
| <tt>Math.tan(Math.PI/4)</tt> || align=center|1 || [[Trigonometric functions#Sine, cosine and tangent|Tangent]]
|}