Skip to content

Commit

Permalink
Add Division Operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZockerAxel committed Mar 24, 2022
1 parent d298e89 commit f7b0221
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public int apply(int base, int amount) {
}
},

DIVIDE {
@Override
public int apply(int base, int amount) {
return (int) Math.floor(base * 1d / amount);
}
},

POWER {
@Override
public int apply(int base, int amount) {
Expand Down

0 comments on commit f7b0221

Please sign in to comment.