--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Truncate to the nearest 1, returning the result as a BigDecimal. - !ruby/struct:SM::Flow::P body: BigDecimal('3.14159').truncate -> 3 - !ruby/struct:SM::Flow::P body: BigDecimal('8.7').truncate -> 8 - !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').truncate(3) -> 3.141 - !ruby/struct:SM::Flow::P body: BigDecimal('13345.234').truncate(-2) -> 13300.0 full_name: BigDecimal#truncate is_singleton: false name: truncate params: | truncate(n) visibility: public