I know that in Java we have a lot of methods to round, but if my code returns the value
0.19998344639311716
And I need the value
0.2
If I use the method Math.round()
it will return 0.0
If I use Math.ceil()
it will return 1.0
What method I can use to return 0.2?