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/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::BlankLineo;
;	[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