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:

big.cr

Constructors

Instance methods inherited from struct Int

to_con(con : CON::Builder) to_con

Instance methods inherited from struct Value

==(other : CON::Any) ==

Instance methods inherited from class Object

===(other : CON::Any) ===, from_con(con : String | IO) from_con, to_con(io : IO)
to_con
to_con
, to_pretty_con(indent : String = " ")
to_pretty_con(io : IO, indent : String = " ")
to_pretty_con

Constructor Detail

def self.from_con(value, pull : CON::PullParser) : BigInt #

[View source]
def self.from_con(pull : CON::PullParser) : BigInt #

[View source]