最速Rubyリファレンスマニュアル検索!
すべて(9)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
9件ヒット
[1-9件を表示]
(0.053秒)
トップページ
>
クラス:
Numeric
>
:
_builtin
>
:negative?
別のキーワード
_builtin new
_builtin inspect
_builtin []
_builtin to_s
_builtin each
ライブラリ
ビルトイン
(9)
検索結果
先頭1件
Numeric
#
negative? -> bool
Numeric
#
negative? -> bool
(26120.0)
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
self が 0 未満の場合に true を返します。そうでない場合に false を返します。
...
self が 0 未満の場合に true を返します。そうでない場合に false を返します。
//emlist[例][ruby]{
-1.
negative?
# => true
0.
negative?
# => false
1.
negative?
# => false
//}
@see
Numeric
#positive?
...