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
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 .......
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
Similar questions
Chemistry,
7 months ago
English,
7 months ago
CBSE BOARD X,
1 year ago
Math,
1 year ago
Math,
1 year ago