以下の内容はhttps://tbpgr.hatenablog.com/entry/20140411/1397226373より取得しました。


Ruby | Integer | ceil

概要

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



以上の内容はhttps://tbpgr.hatenablog.com/entry/20140411/1397226373より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14