Update RoundUpToHundred.java
This commit is contained in:
parent
14b6193fff
commit
38af85f773
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue