UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

7 lines (5 loc) 251 B
import { BigIntAllAssertions } from './BigIntAllAssertions' export const fromBigIntToNumber = (value: bigint) => { BigIntAllAssertions.lte(value, BigInt(Number.MAX_SAFE_INTEGER), 'value', 'BigInt(Number.MAX_SAFE_INTEGER)') return Number(value) }