Computer Science, asked by AmeyaShri123, 1 year ago

Explain the following questions of the Math class of java -

1. ceil()
2. floor()
3. rint()

⚠Content quality required
⚠Spam answers will be deleted

Answers

Answered by Vaanika
2
1.it returns the next rounded value
eg :ceil (5.8)...ans :6

2.floor :it returns previous rounded value
e.g.: floor (4.3).....ans :4

3.it returns the nearest rounded value
eg :rint (6.4).....ans :6
rint (2.7)....ans :3

all these function accepts float values

hope it helps .......

AmeyaShri123: thank you
Vaanika: ur wlcm
Vaanika: thanks for brainliest
AmeyaShri123: :-)
Similar questions