Skip to content

Commit

Permalink
fix #286
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkempire78 committed Jul 2, 2023
1 parent d586631 commit bfcc266
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Calculator(
}
else if (eat('/'.code)) { // Division
val fractionDenominator = parseFactor()
if (fractionDenominator == BigDecimal.ZERO) {
if (fractionDenominator.toFloat() == 0f) {
division_by_0 = true
x = BigDecimal.ZERO
} else {
Expand Down

0 comments on commit bfcc266

Please sign in to comment.