⚝
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
/
BigDecimal
/
View File Name :
mode-c.ri
U:RDoc::AnyMethod[iI" mode:ETI"BigDecimal::mode;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JControls handling of arithmetic exceptions and rounding. If no value ;TI"0is supplied, the current value is returned.;To:RDoc::Markup::BlankLine o; ; [I"ISix values of the mode parameter control the handling of arithmetic ;TI"exceptions:;T@o; ; [I"BigDecimal::EXCEPTION_NaN ;TI"$BigDecimal::EXCEPTION_INFINITY ;TI"%BigDecimal::EXCEPTION_UNDERFLOW ;TI"$BigDecimal::EXCEPTION_OVERFLOW ;TI"&BigDecimal::EXCEPTION_ZERODIVIDE ;TI"BigDecimal::EXCEPTION_ALL;T@o; ; [I"KFor each mode parameter above, if the value set is false, computation ;TI"Fcontinues after an arithmetic exception of the appropriate type. ;TI"8When computation continues, results are as follows:;T@o:RDoc::Markup::List: @type: NOTE:@items[ o:RDoc::Markup::ListItem:@label[I"EXCEPTION_NaN;T; [o; ; [I"NaN;To;;[I"EXCEPTION_INFINITY;T; [o; ; [I"+Infinity or -Infinity;To;;[I"EXCEPTION_UNDERFLOW;T; [o; ; [I"0;To;;[I"EXCEPTION_OVERFLOW;T; [o; ; [I"+Infinity or -Infinity;To;;[I"EXCEPTION_ZERODIVIDE;T; [o; ; [I"+Infinity or -Infinity;T@o; ; [I"NOne value of the mode parameter controls the rounding of numeric values: ;TI"8BigDecimal::ROUND_MODE. The values it can take are:;T@o;; ;;[o;;[I"ROUND_UP, :up;T; [o; ; [I"round away from zero;To;;[I"!ROUND_DOWN, :down, :truncate;T; [o; ; [I""round towards zero (truncate);To;;[I"&ROUND_HALF_UP, :half_up, :default;T; [o; ; [I"}round towards the nearest neighbor, unless both neighbors are equidistant, in which case round away from zero. (default);To;;[I" ROUND_HALF_DOWN, :half_down;T; [o; ; [I"qround towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards zero.;To;;[I")ROUND_HALF_EVEN, :half_even, :banker;T; [o; ; [I"Śround towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards the even neighbor (Banker's rounding);To;;[I"#ROUND_CEILING, :ceiling, :ceil;T; [o; ; [I"+round towards positive infinity (ceil);To;;[I"ROUND_FLOOR, :floor;T; [o; ; [I",round towards negative infinity (floor);T: @fileI" ext/bigdecimal/bigdecimal.c;T:0@omit_headings_from_table_of_contents_below0I""BigDecimal.mode(mode, value) ;T0[ I"(p1, p2 = v2);T@}FI"BigDecimal;TcRDoc::NormalClass00