Computer Science, asked by DitipriyaBarman, 6 hours ago

Find the output for the following mathematical functions:
a. Math.min(-87.9,-78)
b. Math.max(-87,-78)
c. Math.pow(2,3)
d. Math.round(23.3)
e. Math.round(-23.5)
f. Math.floor(-2.3)
g. Math.ceil(-2.3)
h. Math.floor(12.9)
i. Math.ceil(2.3)
j. Math.sqrt(36)​

Answers

Answered by Itzintellectual
1

Answer:

Math.sqrt (36).

Math.min(45)

Answered by swapnilmanekar2
0

a.Math.min(-87.9,-78) gives -87.9

b.Math.max(-87,-78). As -78 is greater than -87, it is the output.

c.Math.pow(2,3) gives 8.0. So the output is 4.0 + 8.0 = 12.0

d.23.5 gets rounded to 23,

e.−23.5 gets rounded to −23.

f.gives -2

G.Math.ceil(-2.3) gives -2

h.Math.floor(12.9) gives 13

I.Math.ceil(2.3) gives 2

j.Math.sqrt(36) gives 6

Similar questions