From d99422cc2bed0d9b56af1cade9f0200616cc9ed9 Mon Sep 17 00:00:00 2001 From: mcpower Date: Tue, 28 Jun 2022 19:22:23 +1000 Subject: [PATCH] Revert testing code in Decimal.pow dc5e216136fdc6bd3ad4a3882d62e156808ae6a5 introduced an unintended functional change to Decimal.pow intended to be used for testing only. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e7cd428..fd988a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;