Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > bigdecimalライブラリ > BigDecimalクラス > remainder
remainder(n)
詳細は Float#remainder を参照して下さい。