D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
oct-i.ri
back
Copy
U:RDoc::AnyMethod[iI"oct:ETI"String#oct;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LInterprets the leading substring of +self+ as a string of octal digits ;TI"C(with an optional sign) and returns the corresponding number; ;TI"8returns zero if there is no such leading substring:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"#'123'.oct # => 83 ;TI"%'-377'.oct # => -255 ;TI"$'0377non-numeric'.oct # => 255 ;TI""'non-numeric'.oct # => 0 ;T:@format0o; ; [I"EIf +self+ starts with <tt>0</tt>, radix indicators are honored; ;TI"see Kernel#Integer.;T@o; ; [I"Related: String#hex.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"oct -> integer ;T0[ I"();T@FI"String;TcRDoc::NormalClass00