D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Integer
/
Filename :
digits-i.ri
back
Copy
U:RDoc::AnyMethod[iI"digits:ETI"Integer#digits;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"@Returns an array of integers representing the +base+-radix ;TI"digits of +self+; ;TI"Kthe first element of the array represents the least significant digit:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I",12345.digits # => [5, 4, 3, 2, 1] ;TI",12345.digits(7) # => [4, 6, 6, 0, 5] ;TI"(12345.digits(100) # => [45, 23, 1] ;T:@format0o; ; [I"HRaises an exception if +self+ is negative or +base+ is less than 2.;T: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I",digits(base = 10) -> array_of_integers ;T0[ I"(*args);T@FI"Integer;TcRDoc::NormalClass00