Give the output of the following:
a.Math.cbrt(125)
b. Math.round(146.5)
Share
Give the output of the following:
a.Math.cbrt(125)
b. Math.round(146.5)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
a. Math.cbrt(125) will return value 5.0
b. Math.round(146.5) will return value 147.0
Explanation:
a. Math.cbrt() returns the cube root of a number in double format
b. Math.round() rounds up the value of the number and returns the value in double format