最速Rubyリファレンスマニュアル検索!
すべて(8)
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)
8件ヒット
[1-8件を表示]
(0.082秒)
トップページ
>
:
-
>
:
on
>
:negative?
別のキーワード
optparse on
optionparser on
tracer on
thread abort_on_exception
thread abort_on_exception=
ライブラリ
ビルトイン
(8)
クラス
Rational
(8)
検索結果
先頭1件
Rational
#
negative? -> bool
Rational
#
negative? -> bool
(21213.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]{
Rati
on
al(1, 2).
negative?
# => false
Rati
on
al(
-
1, 2).
negative?
# => true
//}
@see Rati
on
al#positive?
...
Rational