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

Function toNumberUnsafe

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

Source from the content-addressed store, hash-verified

1476 * @since 4.0.0
1477 */
1478export const toNumberUnsafe = (n: BigDecimal): number => Number(format(n))
1479
1480/**
1481 * Checks whether a given `BigDecimal` is an integer.

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.70
formatFunction · 0.70

Tested by

no test coverage detected