るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. tracepoint self
  4. _builtin self
  5. codeobject document_self

ライブラリ

検索結果

Float#negative? -> bool (54409.0)

self が 0 未満の場合に true を返します。そうでない場合に false を返します。

...self が 0 未満の場合に true を返します。そうでない場合に false を返します。

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

@see Float#positive?...