HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/Integer/sqrt-c.ri
U:RDoc::AnyMethod[iI"	sqrt:ETI"Integer::sqrt;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"FReturns the integer square root of the non-negative integer +n+, ;TI"Ei.e. the largest non-negative integer less than or equal to the ;TI"square root of +n+.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[
I""Integer.sqrt(0)        #=> 0
;TI""Integer.sqrt(1)        #=> 1
;TI""Integer.sqrt(24)       #=> 4
;TI""Integer.sqrt(25)       #=> 5
;TI"(Integer.sqrt(10**400)  #=> 10**200
;T:@format0o;
;	[I"@Equivalent to <code>Math.sqrt(n).floor</code>, except that ;TI"Bthe result of the latter code may differ from the true value ;TI"?due to the limited precision of floating point arithmetic.;T@o;;	[I";Integer.sqrt(10**46)     #=> 100000000000000000000000
;TI"?Math.sqrt(10**46).floor  #=>  99999999999999991611392 (!)
;T;
0o;
;	[I"DIf +n+ is not an Integer, it is converted to an Integer first. ;TI"7If +n+ is negative, a Math::DomainError is raised.;T:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I""Integer.sqrt(n)  ->  integer
;T0[I"	(p1);T@%FI"Integer;TcRDoc::NormalClass00