BigInt overview
A simple extension to the Effect.BigInt module
Table of contents
Constructors
fromInteger
Constructs a BigInt from a CVInteger
Signature
export declare const fromInteger: MTypes.OneArgFunction<
number & Brand.Brand<typeof CVReal.TypeId> & Brand.Brand<typeof _TypeId>,
bigint
>
fromReal
Tries to construct a BigInt from a CVReal. Returns a Right if the conversion can be performed, a Left otherwise
Signature
export declare const fromReal: MTypes.OneArgFunction<CVReal.Type, Either.Either<bigint, Brand.Brand.BrandErrors>>
fromRealOption
Tries to construct a BigInt from a CVReal. Returns a Some if the conversion can be performed, a None otherwise
Signature
export declare const fromRealOption: MTypes.OneArgFunction<CVReal.Type, Option.Option<bigint>>
fromRealOrThrow
Constructs a BigInt from a CVReal if possible. Throws otherwise
Signature
export declare const fromRealOrThrow: MTypes.OneArgFunction<CVReal.Type, bigint>