U:RDoc::AnyMethod[iI"div:ETI"BigDecimal#div;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"#Divide by the specified value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I" digits;T; [ o; ; [I"HIf specified and less than the number of significant digits of the ;TI"Gresult, the result is rounded to that number of digits, according ;TI"to BigDecimal.mode.;T@o; ; [I"BIf digits is 0, the result is the same as for the / operator ;TI" or #quo.;T@o; ; [I";If digits is not specified, the result is an integer, ;TI";by analogy with Float#div; see also BigDecimal#divmod.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"a = BigDecimal("4") ;TI"b = BigDecimal("3") ;TI" ;TI"a.div(b, 3) # => 0.133e1 ;TI" ;TI"/a.div(b, 0) # => 0.1333333333333333333e1 ;TI"/a / b # => 0.1333333333333333333e1 ;TI"/a.quo(b) # => 0.1333333333333333333e1 ;TI" ;TI"a.div(b) # => 1;T: @format0: @fileI" ext/bigdecimal/bigdecimal.c;T:0@omit_headings_from_table_of_contents_below0I"2div(value, digits) -> bigdecimal or integer ;T0[I"(p1, p2 = v2);T@1FI"BigDecimal;TcRDoc::NormalClass00