るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.104秒)
トップページ > クラス:Numeric[x] > バージョン:2.6.0[x] > クエリ:_builtin[x] > クエリ:numeric[x] > ライブラリ:ビルトイン[x] > クエリ:i[x] > クエリ:negative?[x]

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric integer?
  4. numeric conjugate
  5. numeric numerator

検索結果

Numeric#negative? -> bool (123685.0)

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

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

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

@see Numeric#positive?...