--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Divide by the specified value. - !ruby/struct:SM::Flow::P body: e.g. - !ruby/struct:SM::Flow::VERB body: " c = a.div(b,n)\n" - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "digits:" body: If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to BigDecimal.mode. type: :NOTE - !ruby/struct:SM::Flow::P body: If digits is 0, the result is the same as the / operator. If not, the result is an integer BigDecimal, by analogy with Float#div. - !ruby/struct:SM::Flow::P body: The alias quo is provided since div(value, 0) is the same as computing the quotient; see divmod. full_name: BigDecimal#/ is_singleton: false name: / params: | div(value, digits) quo(value) visibility: public