Skip to content

Commit

Permalink
Revert testing code in Decimal.pow
Browse files Browse the repository at this point in the history
dc5e216 introduced an unintended
functional change to Decimal.pow intended to be used for testing only.
  • Loading branch information
mcpower committed Jun 28, 2022
1 parent b04df1e commit d99422c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ export default class Decimal {
} else if (Math.abs(b.toNumber() % 2) % 2 === 0) {
return result;
}
return result;
return Decimal.dNaN;
}

return result;
Expand Down

0 comments on commit d99422c

Please sign in to comment.