⚝
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 :
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
ndigits.abs
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