ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- U:RDoc::AnyMethod[iI"BigDecimal:ETI"Kernel#BigDecimal;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Verbatim; [ I"4Returns the \BigDecimal converted from +value+ ;TI"3with a precision of +ndigits+ decimal digits. ;TI" ;TI"BWhen +ndigits+ is less than the number of significant digits ;TI"Cin the value, the result is rounded to that number of digits, ;TI"Baccording to the current rounding mode; see BigDecimal.mode. ;T: @format0o:RDoc::Markup::Paragraph; [I"RReturns +value+ converted to a \BigDecimal, depending on the type of +value+:;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: BULLET: @items[ o:RDoc::Markup::ListItem: @label0; [o; ; [I"JInteger, Float, Rational, Complex, or BigDecimal: converted directly:;T@o; ; [ I"Y# Integer, Complex, or BigDecimal value does not require ndigits; ignored if given. ;TI"2BigDecimal(2) # => 0.2e1 ;TI"2BigDecimal(Complex(2, 0)) # => 0.2e1 ;TI"2BigDecimal(BigDecimal(2)) # => 0.2e1 ;TI"1# Float or Rational value requires ndigits. ;TI"2BigDecimal(2.0, 0) # => 0.2e1 ;TI"2BigDecimal(Rational(2, 1), 0) # => 0.2e1 ;T; 0o;;0; [o; ; [I"WString: converted by parsing if it contains an integer or floating-point literal; ;TI"0leading and trailing whitespace is ignored:;T@o; ; [ I":# String does not require ndigits; ignored if given. ;TI"$BigDecimal('2') # => 0.2e1 ;TI"$BigDecimal('2.0') # => 0.2e1 ;TI"$BigDecimal('0.2e1') # => 0.2e1 ;TI"$BigDecimal(' 2.0 ') # => 0.2e1 ;T; 0o;;0; [o; ; [I":Other type that responds to method :to_str: ;TI"Lfirst converted to a string, then converted to a \BigDecimal, as above.;T@o;;0; [o; ; [I"Other type:;T@o;;;;[o;;0; [o; ; [I"CRaises an exception if keyword argument +exception+ is +true+.;To;;0; [o; ; [I"=Returns +nil+ if keyword argument +exception+ is +true+.;T@o; ; [I"9Raises an exception if +value+ evaluates to a Float ;TI"0and +digits+ is larger than Float::DIG + 1.;T: @fileI" ext/bigdecimal/bigdecimal.c;T:0@omit_headings_from_table_of_contents_below0I"pBigDecimal(value, exception: true) -> bigdecimal BigDecimal(value, ndigits, exception: true) -> bigdecimal ;T0[I"(p1, p2 = v2, p3 = {});T@OFI" Kernel;TcRDoc::NormalModule00