Back
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?
You can use Math.floor() to do this. For further reference, check here.
Interested in Java? Check out this Java Certification by Intellipaat.
31k questions
32.8k answers
501 comments
693 users