Skip to content

Commit

Permalink
[FIX] Rounding problem in modification by formula with 100 percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
thangqp committed Oct 15, 2024
1 parent 7c6ae45 commit 654c4db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private Double applyOperation(Operator operator, @Nonnull Double value1, @Nonnul
case SUBTRACTION -> value1 - value2;
case MULTIPLICATION -> value1 * value2;
case DIVISION -> value1 / value2;
case PERCENTAGE -> (value1 / 100) * value2;
case PERCENTAGE -> (value1 * value2) / 100;
};
}
}

0 comments on commit 654c4db

Please sign in to comment.