ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- %25-i.ri000064400000000550152400103660005616 0ustar00U:RDoc::AnyMethod[iI"%:ETI" Bignum#%;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Returns big modulo other. See Numeric.divmod for more ;TI"information.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"#big % other -> Numeric;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00remainder-i.ri000064400000001075152400103670007275 0ustar00U:RDoc::AnyMethod[iI"remainder:ETI"Bignum#remainder;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GReturns the remainder after dividing big by numeric.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I":-1234567890987654321.remainder(13731) #=> -6966 ;TI"E-1234567890987654321.remainder(13731.24) #=> -9906.22531493148;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I")big.remainder(numeric) -> number ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00inspect-i.ri000064400000000365152400103670006775 0ustar00U:RDoc::AnyMethod[iI" inspect:ETI"Bignum#inspect;TF: publico:RDoc::Markup::Document: @parts[: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below000[I"(p1 = v1);T@ FI" Bignum;TcRDoc::NormalClass0[@FI" to_s;Tfdiv-i.ri000064400000001074152400103670006256 0ustar00U:RDoc::AnyMethod[iI" fdiv:ETI"Bignum#fdiv;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"AReturns the floating point result of dividing big by ;TI"numeric.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"A-1234567890987654321.fdiv(13731) #=> -89910996357705.5 ;TI"@-1234567890987654321.fdiv(13731.24) #=> -89909424858035.7;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I" big.fdiv(numeric) -> float ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00cdesc-Bignum.ri000064400000003707152400103670007405 0ustar00U:RDoc::NormalClass[iI" Bignum:ET@I" Integer;To:RDoc::Markup::Document: @parts[o;;[ o:RDoc::Markup::Paragraph;[ I"7Bignum objects hold integers outside the range of ;TI"(Fixnum. Bignum objects are created ;TI"Hautomatically when integer calculations would otherwise overflow a ;TI"*Fixnum. When a calculation involving ;TI"8Bignum objects returns a result that will fit in a ;TI"3Fixnum, the result is automatically converted.;To:RDoc::Markup::BlankLineo; ;[I"GFor the purposes of the bitwise operations and [], a ;TI"8Bignum is treated as if it were an infinite-length ;TI"2bitstring with 2's complement representation.;T@o; ;[I"/While Fixnum values are immediate, Bignum ;TI"Bobjects are not---assignment and parameter passing work with ;TI"7references to objects, not the objects themselves.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0o;;[o; ;[I"QWhen mathn is required Bignum's division and exponentiation are enhanced to ;TI">return more precise values from mathematical expressions.;T; I"lib/mathn.rb;T; 0; 0; 0[[U:RDoc::Constant[iI"GMP_VERSION;TI"Bignum::GMP_VERSION;T00o;;[; @ ; 0@ @cRDoc::NormalClass0[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[;[,[I"%;TI" bignum.c;T[I"&;T@C[I"*;T@C[I"**;T@C[I"+;T@C[I"-;T@C[I"-@;T@C[I"/;T@C[I"<;T@C[I"<<;T@C[I"<=;T@C[I"<=>;T@C[I"==;T@C[I"===;T@C[I">;T@C[I">=;T@C[I">>;T@C[I"[];T@C[I"^;T@C[I"abs;T@C[I"bit_length;T@C[I" coerce;T@C[I"div;T@C[I" divmod;T@C[I" eql?;T@C[I" even?;T@C[I" fdiv;T@C[I" hash;T@C[I" inspect;T@C[I"magnitude;T@C[I" modulo;T@C[I" odd?;T@C[I" power!;FI"lib/mathn.rb;T[I"remainder;T@C[I" size;T@C[I" to_f;T@C[I" to_s;T@C[I"|;T@C[I"~;T@C[;[[;[[[U:RDoc::Context::Section[i0o;;[; 0; 0[@ @'@'cRDoc::TopLeveleql%3f-i.ri000064400000001137152400103670006405 0ustar00U:RDoc::AnyMethod[iI" eql?:ETI"Bignum#eql?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"7Returns true only if obj is a ;TI"JBignum with the same value as big. Contrast this ;TI"Bwith Bignum#==, which performs type conversions.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"068719476736.eql?(68719476736.0) #=> false;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"&big.eql?(obj) -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00magnitude-i.ri000064400000000714152400103670007303 0ustar00U:RDoc::AnyMethod[iI"magnitude:ETI"Bignum#magnitude;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I".Returns the absolute value of big.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"7-1234567890987654321.abs #=> 1234567890987654321;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.magnitude -> aBignum;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00coerce-i.ri000064400000001252152400103670006564 0ustar00U:RDoc::AnyMethod[iI" coerce:ETI"Bignum#coerce;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"NReturns an array with both a +numeric+ and a +big+ represented as Bignum ;TI" objects.;To:RDoc::Markup::BlankLineo; ; [I":This is achieved by converting +numeric+ to a Bignum.;T@o; ; [I"KA TypeError is raised if the +numeric+ is not a Fixnum or Bignum type.;T@o:RDoc::Markup::Verbatim; [I"F(0x3FFFFFFFFFFFFFFF+1).coerce(42) #=> [42, 4611686018427387904];T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"$big.coerce(numeric) -> array ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%26-i.ri000064400000000520152400103670005615 0ustar00U:RDoc::AnyMethod[iI"&:ETI" Bignum#&;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"8Performs bitwise +and+ between _big_ and _numeric_.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"!big & numeric -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%2a-i.ri000064400000000510152400103670005667 0ustar00U:RDoc::AnyMethod[iI"*:ETI" Bignum#*;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"4Multiplies big and other, returning the result.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big * other -> Numeric ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3e%3e-i.ri000064400000000545152400103670006201 0ustar00U:RDoc::AnyMethod[iI">>:ETI"Bignum#>>;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JShifts big right _numeric_ positions (left if _numeric_ is negative).;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I""big >> numeric -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00div-i.ri000064400000000521152400103670006104 0ustar00U:RDoc::AnyMethod[iI"div:ETI"Bignum#div;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"6Performs integer division: returns integer value.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I" big.div(other) -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3c%3d-i.ri000064400000000627152400103670006177 0ustar00U:RDoc::AnyMethod[iI"<=:ETI"Bignum#<=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the value of big is ;TI"5less than or equal to that of real.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"$big <= real -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3e%3d-i.ri000064400000000632152400103670006175 0ustar00U:RDoc::AnyMethod[iI">=:ETI"Bignum#>=;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the value of big is ;TI"8greater than or equal to that of real.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"$big >= real -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00size-i.ri000064400000001023152400103670006272 0ustar00U:RDoc::AnyMethod[iI" size:ETI"Bignum#size;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BReturns the number of bytes in the machine representation of ;TI"big.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"!(256**10 - 1).size #=> 12 ;TI"!(256**20 - 1).size #=> 20 ;TI" (256**40 - 1).size #=> 40;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.size -> integer ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%3e-i.ri000064400000000613152400103670005700 0ustar00U:RDoc::AnyMethod[iI">:ETI" Bignum#>;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the value of big is ;TI",greater than that of real.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"#big > real -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%2a%2a-i.ri000064400000001320152400103670006157 0ustar00U:RDoc::AnyMethod[iI"**:ETI"Bignum#**;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"KRaises _big_ to the _exponent_ power (which may be an integer, float, ;TI"Bor anything that will coerce to a number). The result may be ;TI"a Fixnum, Bignum, or Float;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"/123456789 ** 2 #=> 15241578750190521 ;TI".123456789 ** 1.2 #=> 5126464716.09932 ;TI"0123456789 ** -2 #=> 6.5610001194102e-17;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I""big ** exponent -> numeric ;T0[[I" power!;Fo;; [;I"lib/mathn.rb;T;0I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%2f-i.ri000064400000000657152400103670005710 0ustar00U:RDoc::AnyMethod[iI"/:ETI" Bignum#/;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EPerforms division: the class of the resulting object depends on ;TI"Cthe class of numeric and on the magnitude of the ;TI" result.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I" big / other -> Numeric ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%5b%5d-i.ri000064400000001252152400103670006175 0ustar00U:RDoc::AnyMethod[iI"[]:ETI"Bignum#[];TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"JBit Reference---Returns the nth bit in the (assumed) binary ;TI"Drepresentation of big, where big[0] is the least ;TI"significant bit.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"a = 9**15 ;TI"50.downto(0) do |n| ;TI" print a[n] ;TI" end ;T: @format0o; ; [I"produces:;T@o; ; [I"8000101110110100000111000011110010100111100010111001;T; 0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big[n] -> 0, 1 ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00to_s-i.ri000064400000001377152400103670006300 0ustar00U:RDoc::AnyMethod[iI" to_s:ETI"Bignum#to_s;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns a string containing the representation of big radix ;TI" base (2 through 36).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"012345654321.to_s #=> "12345654321" ;TI"G12345654321.to_s(2) #=> "1011011111110110111011110000110001" ;TI"112345654321.to_s(8) #=> "133766736061" ;TI".12345654321.to_s(16) #=> "2dfdbbc31" ;TI"-78546939656932.to_s(36) #=> "rubyrules";T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"$big.to_s(base=10) -> string ;T0[[I" inspect;To;; [;@;0I"(p1 = v1);T@FI" Bignum;TcRDoc::NormalClass00%5e-i.ri000064400000000531152400103670005701 0ustar00U:RDoc::AnyMethod[iI"^:ETI" Bignum#^;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"APerforms bitwise +exclusive or+ between _big_ and _numeric_.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"!big ^ numeric -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3c-i.ri000064400000000610152400103670005673 0ustar00U:RDoc::AnyMethod[iI"<:ETI" Bignum#<;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the value of big is ;TI")less than that of real.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"#big < real -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00divmod-i.ri000064400000000512152400103670006604 0ustar00U:RDoc::AnyMethod[iI" divmod:ETI"Bignum#divmod;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"%See Numeric#divmod.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"$big.divmod(numeric) -> array ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00to_f-i.ri000064400000000625152400103670006256 0ustar00U:RDoc::AnyMethod[iI" to_f:ETI"Bignum#to_f;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HConverts big to a Float. If big doesn't ;TI"9fit in a Float, the result is infinity.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.to_f -> float ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%7c-i.ri000064400000000517152400103670005705 0ustar00U:RDoc::AnyMethod[iI"|:ETI" Bignum#|;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"7Performs bitwise +or+ between _big_ and _numeric_.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"!big | numeric -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00modulo-i.ri000064400000000562152400103670006626 0ustar00U:RDoc::AnyMethod[iI" modulo:ETI"Bignum#modulo;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Returns big modulo other. See Numeric.divmod for more ;TI"information.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"#big.modulo(other) -> Numeric;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00odd%3f-i.ri000064400000000530152400103670006366 0ustar00U:RDoc::AnyMethod[iI" odd?:ETI"Bignum#odd?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I">Returns true if big is an odd number.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.odd? -> true or false ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%3d%3d%3d-i.ri000064400000001123152400103670006464 0ustar00U:RDoc::AnyMethod[iI"===:ETI"Bignum#===;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns true only if obj has the same value ;TI"Gas big. Contrast this with Bignum#eql?, which ;TI"5requires obj to be a Bignum.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",68719476736 == 68719476736.0 #=> true;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I""big == obj -> true or false ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%2d%40-i.ri000064400000000511152400103670006104 0ustar00U:RDoc::AnyMethod[iI"-@:ETI"Bignum#-@;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":Unary minus (returns an integer whose value is 0-big);T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"-big -> integer ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%7e-i.ri000064400000001205152400103670005702 0ustar00U:RDoc::AnyMethod[iI"~:ETI" Bignum#~;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"CInverts the bits in big. As Bignums are conceptually infinite ;TI"Dlength, the result acts as if it had an infinite number of one ;TI"Abits to the left. In hex representations, this is displayed ;TI".as two periods to the left of the digits.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"8sprintf("%X", ~0x1122334455) #=> "..FEEDDCCBBAA";T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"~big -> integer ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%2b-i.ri000064400000000502152400103670005671 0ustar00U:RDoc::AnyMethod[iI"+:ETI" Bignum#+;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I".Adds big and other, returning the result.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big + other -> Numeric ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00abs-i.ri000064400000000672152400103670006076 0ustar00U:RDoc::AnyMethod[iI"abs:ETI"Bignum#abs;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I".Returns the absolute value of big.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"7-1234567890987654321.abs #=> 1234567890987654321;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.abs -> aBignum;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00%2d-i.ri000064400000000510152400103670005672 0ustar00U:RDoc::AnyMethod[iI"-:ETI" Bignum#-;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"4Subtracts other from big, returning the result.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big - other -> Numeric ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3c%3c-i.ri000064400000000545152400103670006175 0ustar00U:RDoc::AnyMethod[iI"<<:ETI"Bignum#<<;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JShifts big left _numeric_ positions (right if _numeric_ is negative).;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I""big << numeric -> integer ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3d%3d-i.ri000064400000001120152400103670006165 0ustar00U:RDoc::AnyMethod[iI"==:ETI"Bignum#==;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EReturns true only if obj has the same value ;TI"Gas big. Contrast this with Bignum#eql?, which ;TI"5requires obj to be a Bignum.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",68719476736 == 68719476736.0 #=> true;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"!big == obj -> true or false;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00%3c%3d%3e-i.ri000064400000001066152400103670006472 0ustar00U:RDoc::AnyMethod[iI"<=>:ETI"Bignum#<=>;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"EComparison---Returns -1, 0, or +1 depending on whether +big+ is ;TI"Aless than, equal to, or greater than +numeric+. This is the ;TI"'basis for the tests in Comparable.;To:RDoc::Markup::BlankLineo; ; [I":+nil+ is returned if the two values are incomparable.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"+big <=> numeric -> -1, 0, +1 or nil ;T0[I" (p1);T@FI" Bignum;TcRDoc::NormalClass00power%21-i.ri000064400000000360152400103670006667 0ustar00U:RDoc::AnyMethod[iI" power!:EFI"Bignum#power!;TF: publico:RDoc::Markup::Document: @parts[: @fileI"lib/mathn.rb;T:0@omit_headings_from_table_of_contents_below000[I" (p1);T@ FI" Bignum;TcRDoc::NormalClass0[@FI"**;Teven%3f-i.ri000064400000000534152400103670006561 0ustar00U:RDoc::AnyMethod[iI" even?:ETI"Bignum#even?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"?Returns true if big is an even number.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I" big.even? -> true or false ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00hash-i.ri000064400000000505152400103670006247 0ustar00U:RDoc::AnyMethod[iI" hash:ETI"Bignum#hash;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"0Compute a hash based on the value of _big_.;T: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"big.hash -> fixnum ;T0[I"();T@FI" Bignum;TcRDoc::NormalClass00bit_length-i.ri000064400000002375152400103670007452 0ustar00U:RDoc::AnyMethod[iI"bit_length:ETI"Bignum#bit_length;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I";Returns the number of bits of the value of int.;To:RDoc::Markup::BlankLineo; ; [ I"%"the number of bits" means that ;TI"Mthe bit position of the highest bit which is different to the sign bit. ;TI"0(The bit position of the bit 2**n is n+1.) ;TI"CIf there is no such bit (zero or minus one), zero is returned.;T@o; ; [I"AI.e. This method returns ceil(log2(int < 0 ? -int : int+1)).;T@o:RDoc::Markup::Verbatim; [I")(-2**10000-1).bit_length #=> 10001 ;TI")(-2**10000).bit_length #=> 10000 ;TI")(-2**10000+1).bit_length #=> 10000 ;TI" ;TI"((-2**1000-1).bit_length #=> 1001 ;TI"((-2**1000).bit_length #=> 1000 ;TI"((-2**1000+1).bit_length #=> 1000 ;TI" ;TI"((2**1000-1).bit_length #=> 1000 ;TI"((2**1000).bit_length #=> 1001 ;TI"((2**1000+1).bit_length #=> 1001 ;TI" ;TI")(2**10000-1).bit_length #=> 10000 ;TI")(2**10000).bit_length #=> 10001 ;TI"((2**10000+1).bit_length #=> 10001;T: @format0: @fileI" bignum.c;T:0@omit_headings_from_table_of_contents_below0I"int.bit_length -> integer ;T0[I"();T@)FI" Bignum;TcRDoc::NormalClass00