HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.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"(Converts <i>arg</i> to an Integer. ;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"@integer string representation.  If <i>arg</i> is a String, ;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"LIn any case, strings should consist only of one or more digits, except ;TI"Nfor that a sign, one underscore between two digits, and leading/trailing ;TI"Cspaces are optional.  This behavior is different from that of ;TI"@String#to_i.  Non string values will be converted by first ;TI"8trying <code>to_int</code>, then <code>to_i</code>.;To:RDoc::Markup::BlankLineo;
;	[	I"NPassing <code>nil</code> raises a TypeError, while passing a String that ;TI"Kdoes not conform with numeric representation raises an ArgumentError. ;TI"LThis behavior can be altered by passing <code>exception: false</code>, ;TI"Gin this case a not convertible value will return <code>nil</code>.;T@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(" +1_0 ")   #=> 10
;TI"GInteger(nil)        #=> TypeError: can't convert nil into Integer
;TI"MInteger("x")        #=> ArgumentError: invalid value for Integer(): "x"
;TI"
;TI"2Integer("x", exception: false)        #=> nil;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"@Integer(arg, base=0, exception: true)    -> integer or nil
;T0[I"(*args);T@+FI"Kernel;TcRDoc::NormalModule00