Math.rint() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Math.rint()

I’m trying to round a method that has a double value, the error is possible loss of precision! Is there other way to round this method?

19th Oct 2017, 7:54 PM
Mirna Mohsen Alkhoreby
Mirna Mohsen Alkhoreby - avatar
1 Answer
+ 5
Pls elaborate
4th Nov 2017, 7:50 PM
David Akhihiero
David Akhihiero - avatar