0 votes
1 view
in Java by (9.2k points)

I know math.round(), will round a number to the nearest decimal. But if I want to round down a number is there a better way to do it? 

1 Answer

0 votes
by (19k points)

You can use Math.floor() to do this. For further reference, check here

Interested in Java? Check out this Java Certification by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...