Javascript first week
math is commonly used Method
1 , parseint ()
Rounding: Takes the integer at the front of the string and returns
2 , Math.ceil ()
Rounding up: A decimal number adds 1 to the integer part
3 , Math.Round ()
Rounded
4 , Math.floor ()
Rounding down
5 , Math.Abs ()
The absolute value of the return number
Math's Method
Math.Abs (): Calculates the absolute value.
Math.acos (): Calculates the inverse cosine value.
Math.asin (): Calculates the inverse chord value.
Math.atan (): Calculates the inverse tangent value.
Math.atan2 (): Calculates the angle from the x-axis to a point.
Math.ceil (): On a number.
Math.Cos (): Calculates the cosine value.
Math.exp (): Calculates the exponent of E.
Math.floor (): Rounds to a number.
Math.log (): Calculates the natural logarithm.
Math.max (): Returns the larger of two numbers.
Math.min (): Returns the smaller of the two numbers.
Math.pow (): Calculates the Y-side of X.
Math.random (): Calculates a random number.
Math.Round (): Rounds to the nearest integer.
Math.sin (): Calculates the sine value.
MATH.SQRT (): Calculates the square root.
Math.tan (): Calculates the tangent value.
JavaScript Learning notes first week math