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/Float/ceil-i.ri
U:RDoc::AnyMethod[iI"	ceil:ETI"Float#ceil;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"GReturns the smallest number greater than or equal to +float+ 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"AReturns a floating point number when +ndigits+ is positive, ;TI""otherwise returns an integer.;T@o:RDoc::Markup::Verbatim;	[I"1.2.ceil      #=> 2
;TI"2.0.ceil      #=> 2
;TI"(-1.2).ceil   #=> -1
;TI"(-2.0).ceil   #=> -2
;TI"
;TI"!1.234567.ceil(2)   #=> 1.24
;TI""1.234567.ceil(3)   #=> 1.235
;TI"#1.234567.ceil(4)   #=> 1.2346
;TI"$1.234567.ceil(5)   #=> 1.23457
;TI"
;TI"#34567.89.ceil(-5)  #=> 100000
;TI""34567.89.ceil(-4)  #=> 40000
;TI""34567.89.ceil(-3)  #=> 35000
;TI""34567.89.ceil(-2)  #=> 34600
;TI""34567.89.ceil(-1)  #=> 34570
;TI""34567.89.ceil(0)   #=> 34568
;TI"$34567.89.ceil(1)   #=> 34567.9
;TI"%34567.89.ceil(2)   #=> 34567.89
;TI"%34567.89.ceil(3)   #=> 34567.89
;T:@format0o;
;	[I"BNote that the limited precision of floating point arithmetic ;TI"&might lead to surprising results:;T@o;;	[I" (2.1 / 0.7).ceil  #=> 4 (!);T;
0:
@fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"1float.ceil([ndigits])  ->  integer or float
;T0[I"(*args);T@4FI"
Float;TcRDoc::NormalClass00