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