Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkempire78 committed Nov 1, 2023
1 parent 55ffda3 commit 2038f8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Calculator(
x = factorial(x)
}
"ln" -> {
if (x.compareTo(BigDecimal.ZERO) == 0) {
if (x <= BigDecimal.ZERO) {
domain_error = true
} else {
x = BigDecimal(ln(x.toDouble()))
Expand Down

0 comments on commit 2038f8f

Please sign in to comment.