Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Float
/
//opt/alt/ruby21/share/ri/2.1.0/system/Float/round-i.ri
U:RDoc::AnyMethod[iI" round:ETI"Float#round;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NRounds +float+ to a given precision in decimal digits (default 0 digits).;To:RDoc::Markup::BlankLine o; ; [I"PPrecision may be negative. Returns a floating point number when +ndigits+ ;TI"is more than zero.;T@o:RDoc::Markup::Verbatim; [I"1.4.round #=> 1 ;TI"1.5.round #=> 2 ;TI"1.6.round #=> 2 ;TI"(-1.5).round #=> -2 ;TI" ;TI"!1.234567.round(2) #=> 1.23 ;TI""1.234567.round(3) #=> 1.235 ;TI"#1.234567.round(4) #=> 1.2346 ;TI"$1.234567.round(5) #=> 1.23457 ;TI" ;TI"34567.89.round(-5) #=> 0 ;TI""34567.89.round(-4) #=> 30000 ;TI""34567.89.round(-3) #=> 35000 ;TI""34567.89.round(-2) #=> 34600 ;TI""34567.89.round(-1) #=> 34570 ;TI""34567.89.round(0) #=> 34568 ;TI"$34567.89.round(1) #=> 34567.9 ;TI"%34567.89.round(2) #=> 34567.89 ;TI"$34567.89.round(3) #=> 34567.89;T:@format0: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"2float.round([ndigits]) -> integer or float ;T0[ I"(p1 = v1);T@(FI" Float;TcRDoc::NormalClass00