| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/BigDecimal/ |
Upload File : |
U:RDoc::AnyMethod[iI"
split:ETI"BigDecimal#split;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PSplits a BigDecimal number into four parts, returned as an array of values.;To:RDoc::Markup::BlankLine o;
; [I"QThe first value represents the sign of the BigDecimal, and is -1 or 1, or 0 ;TI"'if the BigDecimal is Not a Number.;T@o;
; [I"MThe second value is a string representing the significant digits of the ;TI"'BigDecimal, with no leading zeros.;T@o;
; [I"QThe third value is the base used for arithmetic (currently always 10) as an ;TI"
Integer.;T@o;
; [I"-The fourth value is an Integer exponent.;T@o;
; [I"PIf the BigDecimal can be represented as 0.xxxxxx*10**n, then xxxxxx is the ;TI"Ostring of significant digits with no leading zeros, and n is the exponent.;T@o;
; [I"MFrom these values, you can translate a BigDecimal to a float as follows:;T@o:RDoc::Markup::Verbatim; [I"8sign, significant_digits, base, exponent = a.split
;TI"Df = sign * "0.#{significant_digits}".to_f * (base ** exponent)
;T:@format0o;
; [I"R(Note that the to_f method is provided as a more convenient way to translate ;TI"a BigDecimal to a Float.);T:
@fileI" ext/bigdecimal/bigdecimal.c;T:0@omit_headings_from_table_of_contents_below000[ I"();T@-FI"BigDecimal;TcRDoc::NormalClass00