るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.018秒)
トップページ > クラス:Float[x] > バージョン:2.4.0[x] > クエリ:float[x] > クエリ:positive?[x]

別のキーワード

  1. _builtin float
  2. float to_d
  3. float rationalize
  4. json float
  5. fiddle type_float

ライブラリ

検索結果

Float#positive? -> bool (81379.0)

self が 0 より大きい場合に true を返します。そうでない場合に false を返します。

...self が 0 より大きい場合に true を返します。そうでない場合に false を返します。

//emlist[例][ruby]{
0.1.positive? # => true
0.0.positive? # => false
-0.1.positive? # => false
//}

@see Float#negative?...