What is the best way to round a double to an int? Math.round doesn't return an int when a double is passed in - only a long. So if I want to use Math.round, I actually have to do this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.