write program snippet for each stating the output: a) Math.abs()
b) Math.max()
c) Math.min()
d) Math.round()
e) Math.sqrt()
f) Math.cbrt()
g) Math.pow()
h) Math.ceil()
I) Math.floor()
j) Math.random()
k) Math.rint()
Answers
Answered by
2
Answer:
Math.abs() returns the absolute value
Math.max() returns the max value
Math.min() returns the min value
Math.round() rounds the value for example: 2.6 = 3
Math.sqrt() square root the number
Math.cbrt() cube root the numbers
Math.pow() returns the total value when you powered the number
Math.ceil() ceils the numbers for example: 2.1 = 3
Math.random() returns the random numbers in between 0 to 1 in decimals
Similar questions