D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Integer
/
Filename :
gcd-i.ri
back
Copy
U:RDoc::AnyMethod[iI"gcd:ETI"Integer#gcd;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I">Returns the greatest common divisor of the two integers. ;TI"GThe result is always positive. 0.gcd(x) and x.gcd(0) return x.abs.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"(36.gcd(60) #=> 12 ;TI"'2.gcd(2) #=> 2 ;TI"'3.gcd(-7) #=> 1 ;TI"&((1<<31)-1).gcd((1<<61)-1) #=> 1;T:@format0: @fileI"rational.c;T:0@omit_headings_from_table_of_contents_below0I"%int.gcd(other_int) -> integer ;T0[ I" (p1);T@FI"Integer;TcRDoc::NormalClass00