Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Kernel
/
//opt/alt/ruby21/share/ri/2.1.0/system/Kernel/Integer-i.ri
U:RDoc::AnyMethod[iI"Integer:ETI"Kernel#Integer;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JConverts <i>arg</i> to a <code>Fixnum</code> or <code>Bignum</code>. ;TI"GNumeric types are converted directly (with floating point numbers ;TI"Kbeing truncated). <i>base</i> (0, or between 2 and 36) is a base for ;TI"Minteger string representation. If <i>arg</i> is a <code>String</code>, ;TI"Bwhen <i>base</i> is omitted or equals zero, radix indicators ;TI"I(<code>0</code>, <code>0b</code>, and <code>0x</code>) are honored. ;TI"BIn any case, strings should be strictly conformed to numeric ;TI"=representation. This behavior is different from that of ;TI"M<code>String#to_i</code>. Non string values will be converted by first ;TI"Rtrying <code>to_int</code>, then <code>to_i</code>. Passing <code>nil</code> ;TI"raises a TypeError.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"!Integer(123.999) #=> 123 ;TI" Integer("0x1a") #=> 26 ;TI"(Integer(Time.new) #=> 1204973019 ;TI"!Integer("0930", 10) #=> 930 ;TI"Integer("111", 2) #=> 7 ;TI"&Integer(nil) #=> TypeError;T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"(Integer(arg, base=0) -> integer ;T0[ I"(p1, p2 = v2);T@!FI"Kernel;TcRDoc::NormalModule00