How to round up the values in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to round up the values in Java?

56.1754 output is 56.18

2nd Sep 2018, 6:48 AM
Mallika Das
Mallika Das - avatar
2 Answers
0
make a program on it get all value after point and test the value is greater or not by 5 nd then vonvert
3rd Sep 2018, 12:41 PM
Aarav Raj
Aarav Raj - avatar