D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Integer
/
Filename :
cdesc-Integer.ri
back
Copy
U:RDoc::NormalClass[iI"Integer:ET@I"Numeric;To:RDoc::Markup::Document:@parts[o;;[ : @fileI""ext/openssl/lib/openssl/bn.rb;T:0@omit_headings_from_table_of_contents_below0o;;[#o:RDoc::Markup::Paragraph;[I"4An \Integer object represents an integer value.;To:RDoc::Markup::BlankLine o;;[I"7You can create an \Integer object explicitly with:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;;[I"JAn {integer literal}[rdoc-ref:syntax/literals.rdoc@Integer+Literals].;T@o;;[I"6You can convert certain objects to Integers with:;T@o; ;;;[o;;0;[o;;[I"\Method #Integer.;T@o;;[I"GAn attempt to add a singleton method to an instance of this class ;TI"&causes an exception to be raised.;T@S:RDoc::Markup::Heading: leveli: textI"What's Here;T@o;;[I".First, what's elsewhere. \Class \Integer:;T@o; ;;;[o;;0;[o;;[I"Inherits from ;TI"5{class Numeric}[rdoc-ref:Numeric@What-27s+Here] ;TI"7and {class Object}[rdoc-ref:Object@What-27s+Here].;To;;0;[o;;[I"EIncludes {module Comparable}[rdoc-ref:Comparable@What-27s+Here].;T@o;;[I"/Here, class \Integer provides methods for:;T@o; ;;;[ o;;0;[o;;[I"*{Querying}[rdoc-ref:Integer@Querying];To;;0;[o;;[I",{Comparing}[rdoc-ref:Integer@Comparing];To;;0;[o;;[I".{Converting}[rdoc-ref:Integer@Converting];To;;0;[o;;[I"${Other}[rdoc-ref:Integer@Other];T@S;;i;I" Querying;T@o; ;;;[o;;0;[o;;[I";#allbits?: Returns whether all bits in +self+ are set.;To;;0;[o;;[I";#anybits?: Returns whether any bits in +self+ are set.;To;;0;[o;;[I"9#nobits?: Returns whether no bits in +self+ are set.;T@S;;i;I"Comparing;T@o; ;;;[o;;0;[o;;[I"=#<: Returns whether +self+ is less than the given value.;To;;0;[o;;[I"J#<=: Returns whether +self+ is less than or equal to the given value.;To;;0;[o;;[I"J#<=>: Returns a number indicating whether +self+ is less than, equal ;TI")to, or greater than the given value.;To;;0;[o;;[I"H#== (aliased as #===): Returns whether +self+ is equal to the given;To:RDoc::Markup::Verbatim;[I"value. ;T:@format0o;;0;[o;;[I"@#>: Returns whether +self+ is greater than the given value.;To;;0;[o;;[I"M#>=: Returns whether +self+ is greater than or equal to the given value.;T@S;;i;I"Converting;T@o; ;;;["o;;0;[o;;[I"@::sqrt: Returns the integer square root of the given value.;To;;0;[o;;[I"E::try_convert: Returns the given value converted to an \Integer.;To;;0;[o;;[I"D#% (aliased as #modulo): Returns +self+ modulo the given value.;To;;0;[o;;[I"?#&: Returns the bitwise AND of +self+ and the given value.;To;;0;[o;;[I";#*: Returns the product of +self+ and the given value.;To;;0;[o;;[I"M#**: Returns the value of +self+ raised to the power of the given value.;To;;0;[o;;[I"7#+: Returns the sum of +self+ and the given value.;To;;0;[o;;[I">#-: Returns the difference of +self+ and the given value.;To;;0;[o;;[I"<#/: Returns the quotient of +self+ and the given value.;To;;0;[o;;[I"A#<<: Returns the value of +self+ after a leftward bit-shift.;To;;0;[o;;[I"B#>>: Returns the value of +self+ after a rightward bit-shift.;To;;0;[o;;[I".#[]: Returns a slice of bits from +self+.;To;;0;[o;;[I"H#^: Returns the bitwise EXCLUSIVE OR of +self+ and the given value.;To;;0;[o;;[I">#|: Returns the bitwise OR of +self+ and the given value.;To;;0;[o;;[I"H#ceil: Returns the smallest number greater than or equal to +self+.;To;;0;[o;;[I"A#chr: Returns a 1-character string containing the character ;TI"(represented by the value of +self+.;To;;0;[o;;[I"N#digits: Returns an array of integers representing the base-radix digits ;TI"of +self+.;To;;0;[o;;[I"L#div: Returns the integer result of dividing +self+ by the given value.;To;;0;[o;;[I"N#divmod: Returns a 2-element array containing the quotient and remainder ;TI"3results of dividing +self+ by the given value.;To;;0;[o;;[I"K#fdiv: Returns the Float result of dividing +self+ by the given value.;To;;0;[o;;[I"I#floor: Returns the greatest number smaller than or equal to +self+.;To;;0;[o;;[I"8#pow: Returns the modular exponentiation of +self+.;To;;0;[o;;[I"6#pred: Returns the integer predecessor of +self+.;To;;0;[o;;[I"P#remainder: Returns the remainder after dividing +self+ by the given value.;To;;0;[o;;[I"R#round: Returns +self+ rounded to the nearest value with the given precision.;To;;0;[o;;[I"G#succ (aliased as #next): Returns the integer successor of +self+.;To;;0;[o;;[I"0#to_f: Returns +self+ converted to a Float.;To;;0;[o;;[I"N#to_s (aliased as #inspect): Returns a string containing the place-value ;TI"1representation of +self+ in the given radix.;To;;0;[o;;[I"@#truncate: Returns +self+ truncated to the given precision.;T@S;;i;I" Other;T@o; ;;;[o;;0;[o;;[I"H#downto: Calls the given block with each integer value from +self+ ;TI"down to the given value.;To;;0;[o;;[I"B#times: Calls the given block +self+ times with each integer ;TI"in <tt>(0..self-1)</tt>.;To;;0;[o;;[I"F#upto: Calls the given block with each integer value from +self+ ;TI"up to the given value.;T; I"numeric.c;T; 0o;;[ ; I"numeric.rb;T; 0; 0; 0[ [U:RDoc::Constant[i I"GMP_VERSION;TI"Integer::GMP_VERSION;T:public0o;;[o;;[I"The version of loaded GMP.;T@; I" bignum.c;T; 0@J@cRDoc::NormalClass0[ [[I" class;T[[;[[I" sqrt;TI"numeric.c;T[I"try_convert;T@U[:protected[ [:private[ [I" instance;T[[;[G[I"%;T@U[I"&;T@U[I"*;T@U[I"**;T@U[I"+;T@U[I"-;T@U[I"-@;TI"numeric.rb;T[I"/;T@U[I"<;T@U[I"<<;T@U[I"<=;T@U[I"<=>;T@U[I"==;T@U[I"===;T@U[I">;T@U[I">=;T@U[I">>;T@U[I"[];T@U[I"^;T@U[I"|;T@U[I"~;T@o[I"abs;T@o[I" allbits?;T@U[I" anybits?;T@U[I"bit_length;T@o[I" ceil;T@U[I"ceildiv;T@o[I"chr;T@U[I"coerce;TI" bignum.c;T[I"denominator;T@o[I"digits;T@U[I"div;T@U[I"divmod;T@U[I"downto;T@U[I" even?;T@o[I" fdiv;T@U[I" floor;T@U[I"gcd;TI"rational.c;T[I"gcdlcm;T@�[I"inspect;T@U[I" integer?;T@o[I"lcm;T@�[I"magnitude;T@o[I"modulo;T@U[I" next;T@U[I"nobits?;T@U[I"numerator;T@o[I" odd?;T@o[I"ord;T@o[I"pow;T@U[I" pred;T@U[I"rationalize;T@�[I"remainder;T@U[I" round;T@U[I" size;T@o[I" succ;T@U[I" times;T@o[I" to_bn;TI""ext/openssl/lib/openssl/bn.rb;T[I" to_f;T@U[I" to_i;T@o[I"to_int;T@o[I" to_r;T@�[I" to_s;T@U[I" truncate;T@U[I" upto;T@U[I" zero?;T@o[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[ @J@ @;@>I"rational.c;T@�cRDoc::TopLevel