fix: toSDKNumberOrUndefined returned 1e-9 when given 0.000000001

This commit is contained in:
c4605
2025-01-10 16:38:28 +01:00
parent 81ecc026d8
commit 1f7f984b8f

View File

@@ -3,6 +3,9 @@ import { OneOrMore } from "./typeHelpers"
import { last } from "./arrayHelpers"
import { reduce } from "./arrayHelpers"
Big.PE = 21
Big.NE = -21
export type BigNumberSource = number | bigint | string | Big | BigNumber
const toBig = (num: BigNumberSource): Big => {