概要
Integer#ceil
詳細
小数点以下を繰り上げる
サンプルコード
# encoding: utf-8 require 'tbpgr_utils' bulk_puts_eval binding, <<-EOS 1.ceil 1.1.ceil 1.0.ceil EOS __END__ 下記はTbpgrUtils gemの機能 bulk_puts_eval attr_accessor_init https://rubygems.org/gems/tbpgr_utils https://github.com/tbpgr/tbpgr_utils
出力
1.ceil # => 1 1.1.ceil # => 2 1.0.ceil # => 1