2件ヒット
[1-2件を表示]
(0.050秒)
別のキーワード
ライブラリ
- bigdecimal (1)
- pathname (1)
クラス
- BigDecimal (1)
- Pathname (1)
検索結果
-
BigDecimal
# abs -> BigDecimal (54397.0) -
self の絶対値を返します。
self の絶対値を返します。
//emlist[][ruby]{
require 'bigdecimal'
BigDecimal('5').abs.to_i # => 5
BigDecimal('-3').abs.to_i # => 3
//} -
Pathname
# absolute? -> bool (18358.0) -
self が絶対パス指定であれば真を返します。
self が絶対パス指定であれば真を返します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/example.rb")
pathname.absolute? # => true
pathname = Pathname("../")
pathname.absolute? # => false
//}