Math object in JavaScript

ABS : absolute value

ceil / Floor : up / down rounding

round : rounding

sqrt : square root

POW : exponentiation (N M Power)

max / min : maximum and minimum values

The PI : Get pi

Random : random decimal 0 ~. 1

Extended : Math.round (Math.random () * ( mn) + n): random integer between n-m

Guess you like

Origin www.cnblogs.com/wangshouren/p/11615848.html