--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Round to the nearest 1 (by default), returning the result as a BigDecimal. - !ruby/struct:SM::Flow::P body: BigDecimal('3.14159').round -> 3 - !ruby/struct:SM::Flow::P body: BigDecimal('8.7').round -> 9 - !ruby/struct:SM::Flow::P body: If n is specified and positive, the fractional part of the result has no more than that many digits. - !ruby/struct:SM::Flow::P body: If n is specified and negative, at least that many digits to the left of the decimal point will be 0 in the result. - !ruby/struct:SM::Flow::P body: BigDecimal('3.14159').round(3) -> 3.142 - !ruby/struct:SM::Flow::P body: BigDecimal('13345.234').round(-2) -> 13300.0 - !ruby/struct:SM::Flow::P body: The value of the optional mode argument can be used to determine how rounding is performed; see BigDecimal.mode. full_name: BigDecimal#round is_singleton: false name: round params: | round(n,mode) visibility: public