⚝
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
/
View File Name :
round-i.ri
U:RDoc::AnyMethod[iI" round:ETI"Integer#round;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5Returns +int+ rounded to the nearest value with ;TI":a precision of +ndigits+ decimal digits (default: 0).;To:RDoc::Markup::BlankLine o; ; [I"FWhen the precision is negative, the returned value is an integer ;TI";with at least <code>ndigits.abs</code> trailing zeros.;T@o; ; [I"7Returns +self+ when +ndigits+ is zero or positive.;T@o:RDoc::Markup::Verbatim; [ I"1.round #=> 1 ;TI"1.round(2) #=> 1 ;TI"15.round(-1) #=> 20 ;TI"(-15).round(-1) #=> -20 ;T:@format0o; ; [I"7The optional +half+ keyword argument is available ;TI"similar to Float#round.;T@o;; [I")25.round(-1, half: :up) #=> 30 ;TI")25.round(-1, half: :down) #=> 20 ;TI")25.round(-1, half: :even) #=> 20 ;TI")35.round(-1, half: :up) #=> 40 ;TI")35.round(-1, half: :down) #=> 30 ;TI")35.round(-1, half: :even) #=> 40 ;TI"*(-25).round(-1, half: :up) #=> -30 ;TI"*(-25).round(-1, half: :down) #=> -20 ;TI")(-25).round(-1, half: :even) #=> -20;T; 0: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"?int.round([ndigits] [, half: mode]) -> integer or float ;T0[ I"(p1 = v1, p2 = {});T@,FI"Integer;TcRDoc::NormalClass00