1. What will the following functions return when executed:
i) Math.max(-7, Math.min(-2,-9))
ii) Math.ceil(32.17)
please answer
Answers
Given : (i) Math.max (-7, Math.min(-2,-9))
(ii) Math.ceil(32.17)
(iii) Math.floor(-6.85)
To Find : What is output / value returned by function
Solution:
(i) Math.max (-7, Math.min(-2,-9))
Math.min(-2,-9) = - 9 ( minimum of two )
Math.max (-7, -9)
Math.max (-7, -9) = -7 ( maximum of two )
Math.max (-7, Math.min(-2,-9)) = - 7
(ii) Math.ceil(32.17)
Math. ceil() function always rounds a number up to the next largest integer.
=> Math.ceil(32.17) = 33
(iii) Math.floor(-6.85)
Math.floor () function returns greatest integer less than or equal to
=> Math.floor(-6.85) = -7
Learn More:
https://brainly.in/question/19891245
i am located near top of the excel window, below the quick access ...
https://brainly.in/question/11521467
Excel would evaluate the formula, = 20*10/5*8 and return this ...
https://brainly.in/question/14112243