D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Numeric
/
Filename :
remainder-i.ri
back
Copy
U:RDoc::AnyMethod[iI"remainder:ETI"Numeric#remainder;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"<Returns the remainder after dividing +self+ by +other+.;To:RDoc::Markup::BlankLine o; ; [I"/Of the Core and Standard Library classes, ;TI"5only Float and Rational use this implementation.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"-11.0.remainder(4) # => 3.0 ;TI"-11.0.remainder(-4) # => 3.0 ;TI".-11.0.remainder(4) # => -3.0 ;TI".-11.0.remainder(-4) # => -3.0 ;TI" ;TI"-12.0.remainder(4) # => 0.0 ;TI"-12.0.remainder(-4) # => 0.0 ;TI".-12.0.remainder(4) # => -0.0 ;TI".-12.0.remainder(-4) # => -0.0 ;TI" ;TI"-13.0.remainder(4.0) # => 1.0 ;TI"-13.0.remainder(Rational(4, 1)) # => 1.0 ;TI" ;TI"/Rational(13, 1).remainder(4) # => (1/1) ;TI"/Rational(13, 1).remainder(-4) # => (1/1) ;TI"0Rational(-13, 1).remainder(4) # => (-1/1) ;TI"/Rational(-13, 1).remainder(-4) # => (-1/1);T:@format0: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"%remainder(other) -> real_number ;T0[ I" (p1);T@)FI"Numeric;TcRDoc::NormalClass00