Update RoundUpToHundred.java

This commit is contained in:
Eric Martin 2018-09-17 21:55:14 -05:00 committed by GitHub
parent 14b6193fff
commit 38af85f773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ public class RoundUpToHundred {
}
static long round(double input) {
long i = (int) Math.ceil(input);
long i = (long) Math.ceil(input);
return ((i + 99) / 100) * 100;
};