struct BigInt

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

Defined in:

bson/decimal128.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bytes : Bytes) #

Initialize from a Byte array.


[View source]

Instance Method Detail

def bytes #

Fetch a copy of the underlying byte representation.


[View source]