Skip to content

Commit 38af85f

Browse files
authored
Update RoundUpToHundred.java
1 parent 14b6193 commit 38af85f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎algorithms/roundUpToHundred/src/com/java/src/RoundUpToHundred.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void main(String[] args) {
1313
}
1414

1515
static long round(double input) {
16-
long i = (int) Math.ceil(input);
16+
long i = (long) Math.ceil(input);
1717
return ((i + 99) / 100) * 100;
1818
};
1919

0 commit comments

Comments
 (0)