經安全檢測,此網站為安全網站,請放心前往原始網址!

math - Java Round up Any Number - Stack Overflow

Math.ceil() is the correct function to call. I'm guessing a is an int , which would make a / 100 perform integer arithmetic. Try Math.ceil(a / 100.0) instead.

stackoverflow.com

網址安全性掃描由 google 提供