struct BigInt
- BigInt
- Int
- Number
- Value
- Object
Overview
A BigInt
can represent arbitrarily large integers.
It is implemented under the hood with GMP.
NOTE To use BigInt
, you must explicitly import it with require "big"
Included Modules
- Comparable(Float)
- Comparable(BigInt)
- Comparable(UInt128 | UInt16 | UInt32 | UInt64 | UInt8)
- Comparable(Int128 | Int16 | Int32 | Int64 | Int8)
Defined in:
bson/decimal128.crConstructors
-
.new(bytes : Bytes)
Initialize from a Byte array.
Instance Method Summary
-
#bytes
Fetch a copy of the underlying byte representation.