Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k 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 (19.7k 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
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...