MCPcopy Create free account
hub / github.com/effect-app/libs / toNumber

Function toNumber

repos/effect/packages/effect/src/BigInt.ts:838–843  ·  view source on GitHub ↗
(b: bigint)

Source from the content-addressed store, hash-verified

836 *
837 * ```ts import.meta.vitest
838 * import { BigInt, Option } from "effect"
839 *
840 * BigInt.fromString("42") // => Option.some(42n)
841 * BigInt.fromString(" ") // => Option.none()
842 * BigInt.fromString("a") // => Option.none()
843 * ```
844 *
845 * @see {@link BigInt} for native constructor coercion that throws on invalid input
846 *

Callers

nothing calls this directly

Calls 3

someMethod · 0.80
BigIntInterface · 0.70
NumberInterface · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…