Computer Science, asked by ishitasinghraje, 9 months ago

What is the difference between math.round and math.rint

Answers

Answered by charlie1505
1

Answer:

Math.rint() and Math.round() have several differences, but the one which might impact. Consider the following eg-

Math.rint(7.2) = 7.0

Math.round(4.2) = 4

Math.rint(5.5) = 6.0

Math.round(5.5) = 5

Math.rint(4.501) = 5.0

Math.round(4.501) = 5

Similar questions