struct BigInt
Superclass hierarchy
Object
Value
Number
Int
BigInt
Included Modules
Comparable(BigInt)
,
Comparable(SignedInt)
,
Comparable(UnsignedInt)
Defined in:
Class Method Summary
.cast
(value)
.new
(&block)
.new
(str : String, base = 10)
.new
(num : SignedInt)
.new
(num : UnsignedInt)
.new
(mpz : LibGMP::MPZ)
.new
Instance Method Summary
#%
(other : Int)
#%
(other : BigInt)
#&
(other : Int)
#*
(other : SignedInt)
#*
(other : BigInt)
#*
(other : UnsignedInt)
#+
(other : BigInt)
#+
(other : Int)
#-
(other : BigInt)
#-
(other : Int)
#-
#/
(other : BigInt)
#/
(other : Int)
#<<
(other : Int)
#<=>
(other : SignedInt)
#<=>
(other : BigInt)
#<=>
(other : UnsignedInt)
#>>
(other : Int)
#^
(other : Int)
#abs
#digits
#inspect
#inspect
(io)
#to_big_i
#to_f
#to_f32
#to_f64
#to_i
#to_i16
#to_i32
#to_i64
#to_i8
#to_s
(base : Int)
#to_s
(io)
#to_s
#to_u
#to_u16
#to_u32
#to_u64
#to_u8
#to_unsafe
#|
(other : Int)
#~
Class Method Detail
def self.
cast
(value)
def self.
new
(&block)
def self.
new
(str :
String
, base =
10
)
def self.
new
(num :
SignedInt
)
def self.
new
(num :
UnsignedInt
)
def self.
new
(mpz : LibGMP::MPZ)
def self.
new
Instance Method Detail
def
%
(other :
Int
)
def
%
(other :
BigInt
)
def
&
(other :
Int
)
def
*
(other :
SignedInt
)
def
*
(other :
BigInt
)
def
*
(other :
UnsignedInt
)
def
+
(other :
BigInt
)
def
+
(other :
Int
)
def
-
(other :
BigInt
)
def
-
(other :
Int
)
def
-
def
/
(other :
BigInt
)
def
/
(other :
Int
)
def
<<
(other :
Int
)
def
<=>
(other :
SignedInt
)
def
<=>
(other :
BigInt
)
def
<=>
(other :
UnsignedInt
)
def
>>
(other :
Int
)
def
^
(other :
Int
)
def
abs
def
digits
def
inspect
def
inspect
(io)
def
to_big_i
def
to_f
def
to_f32
def
to_f64
def
to_i
def
to_i16
def
to_i32
def
to_i64
def
to_i8
def
to_s
(base :
Int
)
def
to_s
(io)
def
to_s
def
to_u
def
to_u16
def
to_u32
def
to_u64
def
to_u8
def
to_unsafe
def
|
(other :
Int
)
def
~