ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
%25-i.ri 0000644 00000000614 15237753635 0005642 0 ustar 00 U:RDoc::AnyMethod[iI"%:ETI"
Fixnum#%;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Returns +fix+ modulo +other+.;To:RDoc::Markup::BlankLine o;
; [I"-See Numeric#divmod for more information.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I" fix % other -> real;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 cdesc-Fixnum.ri 0000644 00000004012 15237753635 0007442 0 ustar 00 U:RDoc::NormalClass[iI"Fixnum:ET@I"Integer;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"RWhen mathn is required, Fixnum's division and exponentiation are enhanced to ;TI">return more precise values from mathematical expressions.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"2/3*3 # => 0
;TI"require 'mathn'
;TI"2/3*3 # => 2;T:@format0:
@fileI"lib/mathn.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ;
I"lib/rexml/xpath_parser.rb;T;0o;;[
o; ;[I"KHolds Integer values that can be represented in a native machine word ;TI"P(minus 1 bit). If any operation on a Fixnum exceeds this range, the value ;TI",is automatically converted to a Bignum.;T@o; ;[I"QFixnum objects have immediate value. This means that when they are assigned ;TI"Ior passed as parameters, the actual object is passed, rather than a ;TI"reference to that object.;T@o; ;[ I"MAssignment does not alias Fixnum objects. There is effectively only one ;TI"NFixnum object instance for any given integer value, so, for example, you ;TI"Ocannot add a singleton method to a Fixnum. Any attempt to add a singleton ;TI"6method to a Fixnum object will raise a TypeError.;T;
I"numeric.c;T;0;
0;0[ [ [ [[I"
class;T[[:public[ [:protected[ [:private[ [I"
instance;T[[;[+[I"%;TI"numeric.c;T[I"&;T@B[I"*;T@B[I"**;TI"lib/mathn.rb;T[I"+;T@B[I"-;T@B[I"-@;T@B[I"/;T@B[I"<;T@B[I"<<;T@B[I"<=;T@B[I"<=>;T@B[I"==;T@B[I"===;T@B[I">;T@B[I">=;T@B[I">>;T@B[I"[];T@B[I"^;T@B[I"abs;T@B[I"bit_length;T@B[I"dclone;FI"lib/rexml/xpath_parser.rb;T[I"div;T@B[I"divmod;T@B[I"
even?;T@B[I" fdiv;T@B[I"inspect;T@B[I"magnitude;T@B[I"modulo;T@B[I" odd?;T@B[I"power!;F@I[I" size;T@B[I" succ;T@B[I" to_f;T@B[I" to_s;T@B[I"
zero?;T@B[I"|;T@B[I"~;T@B[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@@@-@-cRDoc::TopLevel inspect-i.ri 0000644 00000000366 15237753635 0007020 0 ustar 00 U:RDoc::AnyMethod[iI"inspect:ETI"Fixnum#inspect;TF:publico:RDoc::Markup::Document:@parts[ :
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below000[ I"(p1 = v1);T@FI"Fixnum;TcRDoc::NormalClass0[@FI" to_s;T fdiv-i.ri 0000644 00000001020 15237753635 0006267 0 ustar 00 U:RDoc::AnyMethod[iI" fdiv:ETI"Fixnum#fdiv;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FReturns the floating point result of dividing +fix+ by +numeric+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"2654321.fdiv(13731) #=> 47.6528293642124
;TI"1654321.fdiv(13731.24) #=> 47.6519964693647;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I""fix.fdiv(numeric) -> float
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 magnitude-i.ri 0000644 00000000714 15237753635 0007325 0 ustar 00 U:RDoc::AnyMethod[iI"magnitude:ETI"Fixnum#magnitude;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Returns the absolute value of +fix+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"-12345.abs #=> 12345
;TI"12345.abs #=> 12345;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix.magnitude -> integer;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 dclone-i.ri 0000644 00000000573 15237753635 0006617 0 ustar 00 U:RDoc::AnyMethod[iI"dclone:EFI"Fixnum#dclone;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Bprovides a unified +clone+ operation, for REXML::XPathParser ;TI"(to use across multiple Object types;T:
@fileI"lib/rexml/xpath_parser.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %26-i.ri 0000644 00000000460 15237753635 0005642 0 ustar 00 U:RDoc::AnyMethod[iI"&:ETI"
Fixnum#&;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Bitwise AND.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix & integer -> integer_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %2a-i.ri 0000644 00000000712 15237753635 0005715 0 ustar 00 U:RDoc::AnyMethod[iI"*:ETI"
Fixnum#*;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OPerforms multiplication: the class of the resulting object depends on the ;TI"Lclass of +numeric+ and on the magnitude of the result. It may return a ;TI"Bignum.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix * numeric -> numeric_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3e%3e-i.ri 0000644 00000000543 15237753635 0006221 0 ustar 00 U:RDoc::AnyMethod[iI">>:ETI"Fixnum#>>;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JShifts +fix+ right +count+ positions, or left if +count+ is negative.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix >> count -> integer
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 div-i.ri 0000644 00000000574 15237753635 0006136 0 ustar 00 U:RDoc::AnyMethod[iI"div:ETI"Fixnum#div;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LPerforms integer division: returns integer result of dividing +fix+ by ;TI"+numeric+.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"#fix.div(numeric) -> integer
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3c%3d-i.ri 0000644 00000000567 15237753635 0006224 0 ustar 00 U:RDoc::AnyMethod[iI"<=:ETI"Fixnum#<=;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KReturns +true+ if the value of +fix+ is less than or equal to that of ;TI"+real+.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"$fix <= real -> true or false
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3e%3d-i.ri 0000644 00000000572 15237753635 0006222 0 ustar 00 U:RDoc::AnyMethod[iI">=:ETI"Fixnum#>=;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NReturns +true+ if the value of +fix+ is greater than or equal to that of ;TI"+real+.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"$fix >= real -> true or false
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 size-i.ri 0000644 00000000775 15237753635 0006331 0 ustar 00 U:RDoc::AnyMethod[iI" size:ETI"Fixnum#size;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns the number of bytes in the machine representation of +fix+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"1.size #=> 4
;TI"-1.size #=> 4
;TI"2147483647.size #=> 4;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix.size -> fixnum
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %3e-i.ri 0000644 00000000544 15237753635 0005725 0 ustar 00 U:RDoc::AnyMethod[iI">:ETI"
Fixnum#>;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"IReturns +true+ if the value of +fix+ is greater than that of +real+.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"#fix > real -> true or false
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %2a%2a-i.ri 0000644 00000000471 15237753635 0006207 0 ustar 00 U:RDoc::AnyMethod[iI"**:ETI"Fixnum#**;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Exponentiate by +other+;T:
@fileI"lib/mathn.rb;T:0@omit_headings_from_table_of_contents_below000[[I"power!;Fo;; [ ;@;0I"(other);T@FI"Fixnum;TcRDoc::NormalClass00 %2f-i.ri 0000644 00000000675 15237753635 0005732 0 ustar 00 U:RDoc::AnyMethod[iI"/:ETI"
Fixnum#/;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RPerforms division: the class of the resulting object depends on the class of ;TI"J+numeric+ and on the magnitude of the result. It may return a Bignum.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix / numeric -> numeric_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %5b%5d-i.ri 0000644 00000001160 15237753635 0006215 0 ustar 00 U:RDoc::AnyMethod[iI"[]:ETI"Fixnum#[];TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"KBit Reference---Returns the +n+th bit in the binary representation of ;TI"C+fix+, where fix[0] is the least significant bit.;To:RDoc::Markup::BlankLine o;
; [I"For example:;T@o:RDoc::Markup::Verbatim; [I"a = 0b11001100101010
;TI"(30.downto(0) do |n| print a[n] end
;TI"(#=> 0000000000000000011001100101010;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix[n] -> 0, 1
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 to_s-i.ri 0000644 00000001311 15237753635 0006306 0 ustar 00 U:RDoc::AnyMethod[iI" to_s:ETI"Fixnum#to_s;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JReturns a string containing the representation of +fix+ radix +base+ ;TI"(between 2 and 36).;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I""12345.to_s #=> "12345"
;TI"+12345.to_s(2) #=> "11000000111001"
;TI""12345.to_s(8) #=> "30071"
;TI""12345.to_s(10) #=> "12345"
;TI"!12345.to_s(16) #=> "3039"
;TI"12345.to_s(36) #=> "9ix";T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"#fix.to_s(base=10) -> string
;T0[[I"inspect;To;; [ ;@;0I"(p1 = v1);T@FI"Fixnum;TcRDoc::NormalClass00 %5e-i.ri 0000644 00000000471 15237753635 0005726 0 ustar 00 U:RDoc::AnyMethod[iI"^:ETI"
Fixnum#^;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Bitwise EXCLUSIVE OR.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix ^ integer -> integer_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3c-i.ri 0000644 00000000541 15237753635 0005720 0 ustar 00 U:RDoc::AnyMethod[iI"<:ETI"
Fixnum#<;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FReturns +true+ if the value of +fix+ is less than that of +real+.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"#fix < real -> true or false
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 divmod-i.ri 0000644 00000000476 15237753635 0006637 0 ustar 00 U:RDoc::AnyMethod[iI"divmod:ETI"Fixnum#divmod;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"See Numeric#divmod.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"$fix.divmod(numeric) -> array
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 succ-i.ri 0000644 00000000715 15237753635 0006306 0 ustar 00 U:RDoc::AnyMethod[iI" succ:ETI"Fixnum#succ;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I",Returns the Integer equal to +int+ + 1.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"1.next #=> 2
;TI"(-1).next #=> 0;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"1int.next -> integer
int.succ -> integer
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 to_f-i.ri 0000644 00000000464 15237753635 0006301 0 ustar 00 U:RDoc::AnyMethod[iI" to_f:ETI"Fixnum#to_f;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Converts +fix+ to a Float.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix.to_f -> float
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %7c-i.ri 0000644 00000000457 15237753635 0005732 0 ustar 00 U:RDoc::AnyMethod[iI"|:ETI"
Fixnum#|;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Bitwise OR.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix | integer -> integer_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 modulo-i.ri 0000644 00000000626 15237753635 0006651 0 ustar 00 U:RDoc::AnyMethod[iI"modulo:ETI"Fixnum#modulo;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I""Returns +fix+ modulo +other+.;To:RDoc::Markup::BlankLine o;
; [I"-See Numeric#divmod for more information.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I" fix.modulo(other) -> real;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 odd%3f-i.ri 0000644 00000000513 15237753635 0006411 0 ustar 00 U:RDoc::AnyMethod[iI" odd?:ETI"Fixnum#odd?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Returns +true+ if +fix+ is an odd number.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"!fix.odd? -> true or false
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %3d%3d%3d-i.ri 0000644 00000000723 15237753635 0006513 0 ustar 00 U:RDoc::AnyMethod[iI"===:ETI"Fixnum#===;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Return +true+ if +fix+ equals +other+ numerically.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"1 == 2 #=> false
;TI"1 == 1.0 #=> true;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"%fix == other -> true or false
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %2d%40-i.ri 0000644 00000000475 15237753635 0006137 0 ustar 00 U:RDoc::AnyMethod[iI"-@:ETI"Fixnum#-@;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Negates +fix+, which may return a Bignum.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"-fix -> integer
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %7e-i.ri 0000644 00000000517 15237753635 0005731 0 ustar 00 U:RDoc::AnyMethod[iI"~:ETI"
Fixnum#~;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BOne's complement: returns a number where each bit is flipped.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"~fix -> integer
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %2b-i.ri 0000644 00000000675 15237753635 0005726 0 ustar 00 U:RDoc::AnyMethod[iI"+:ETI"
Fixnum#+;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RPerforms addition: the class of the resulting object depends on the class of ;TI"J+numeric+ and on the magnitude of the result. It may return a Bignum.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix + numeric -> numeric_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 abs-i.ri 0000644 00000000700 15237753635 0006110 0 ustar 00 U:RDoc::AnyMethod[iI"abs:ETI"Fixnum#abs;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Returns the absolute value of +fix+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"-12345.abs #=> 12345
;TI"12345.abs #=> 12345;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix.abs -> integer;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %2d-i.ri 0000644 00000000700 15237753635 0005715 0 ustar 00 U:RDoc::AnyMethod[iI"-:ETI"
Fixnum#-;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RPerforms subtraction: the class of the resulting object depends on the class ;TI"Mof +numeric+ and on the magnitude of the result. It may return a Bignum.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"'fix - numeric -> numeric_result
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3c%3c-i.ri 0000644 00000000543 15237753635 0006215 0 ustar 00 U:RDoc::AnyMethod[iI"<<:ETI"Fixnum#<<;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JShifts +fix+ left +count+ positions, or right if +count+ is negative.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"fix << count -> integer
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 %3d%3d-i.ri 0000644 00000000720 15237753635 0006214 0 ustar 00 U:RDoc::AnyMethod[iI"==:ETI"Fixnum#==;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Return +true+ if +fix+ equals +other+ numerically.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"1 == 2 #=> false
;TI"1 == 1.0 #=> true;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"$fix == other -> true or false;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 zero%3f-i.ri 0000644 00000000505 15237753635 0006623 0 ustar 00 U:RDoc::AnyMethod[iI"
zero?:ETI"Fixnum#zero?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"%Returns +true+ if +fix+ is zero.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I""fix.zero? -> true or false
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 %3c%3d%3e-i.ri 0000644 00000001127 15237753635 0006512 0 ustar 00 U:RDoc::AnyMethod[iI"<=>:ETI"Fixnum#<=>;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"QComparison---Returns +-1+, +0+, ++1+ or +nil+ depending on whether +fix+ is ;TI"4less than, equal to, or greater than +numeric+.;To:RDoc::Markup::BlankLine o;
; [I">This is the basis for the tests in the Comparable module.;T@o;
; [I":+nil+ is returned if the two values are incomparable.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"+fix <=> numeric -> -1, 0, +1 or nil
;T0[ I" (p1);T@FI"Fixnum;TcRDoc::NormalClass00 power%21-i.ri 0000644 00000000363 15237753635 0006714 0 ustar 00 U:RDoc::AnyMethod[iI"power!:EFI"Fixnum#power!;TF:publico:RDoc::Markup::Document:@parts[ :
@fileI"lib/mathn.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(other);T@FI"Fixnum;TcRDoc::NormalClass0[@FI"**;T even%3f-i.ri 0000644 00000000517 15237753635 0006604 0 ustar 00 U:RDoc::AnyMethod[iI"
even?:ETI"Fixnum#even?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"/Returns +true+ if +fix+ is an even number.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I""fix.even? -> true or false
;T0[ I"();T@FI"Fixnum;TcRDoc::NormalClass00 bit_length-i.ri 0000644 00000002467 15237753635 0007476 0 ustar 00 U:RDoc::AnyMethod[iI"bit_length:ETI"Fixnum#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::BlankLine o;
; [ 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**12-1).bit_length #=> 13
;TI"&(-2**12).bit_length #=> 12
;TI"&(-2**12+1).bit_length #=> 12
;TI"%-0x101.bit_length #=> 9
;TI"%-0x100.bit_length #=> 8
;TI"%-0xff.bit_length #=> 8
;TI"%-2.bit_length #=> 1
;TI"%-1.bit_length #=> 0
;TI"%0.bit_length #=> 0
;TI"%1.bit_length #=> 1
;TI"%0xff.bit_length #=> 8
;TI"%0x100.bit_length #=> 9
;TI"&(2**12-1).bit_length #=> 12
;TI"&(2**12).bit_length #=> 13
;TI"%(2**12+1).bit_length #=> 13;T:@format0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"int.bit_length -> integer
;T0[ I"();T@)FI"Fixnum;TcRDoc::NormalClass00