D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Integer
/
Filename :
div-i.ri
back
Copy
U:RDoc::AnyMethod[iI"div:ETI"Integer#div;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NPerforms integer division; returns the integer result of dividing +self+ ;TI"by +numeric+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I""4.div(3) # => 1 ;TI"#4.div(-3) # => -2 ;TI"#-4.div(3) # => -2 ;TI""-4.div(-3) # => 1 ;TI""4.div(3.0) # => 1 ;TI""4.div(Rational(3, 1)) # => 1 ;T:@format0o; ; [I"ARaises an exception if +numeric+ does not have method +div+.;T: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"div(numeric) -> integer ;T0[ I" (p1);T@FI"Integer;TcRDoc::NormalClass00