Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > bigdecimalライブラリ > BigDecimalクラス > abs

instance method BigDecimal#abs

abs

a の絶対値

c = a.abs