MCPcopy Create free account
hub / github.com/Effect-TS/effect / unsafeToNumber

Function unsafeToNumber

packages/effect/src/BigDecimal.ts:1057–1057  ·  view source on GitHub ↗
(n: BigDecimal)

Source from the content-addressed store, hash-verified

1055 * @category conversions
1056 */
1057export const unsafeToNumber = (n: BigDecimal): number => Number(format(n))
1058
1059/**
1060 * Checks if a given `BigDecimal` is an integer.

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
formatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…