⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Integer
/
Edit File: 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 <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
Simpan