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 b1f1295 commit 7c6ae45
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 * (value2 / 100);
case PERCENTAGE -> (value1 / 100) * value2;
};
}
}

0 comments on commit 7c6ae45

Please sign in to comment.