最速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.028秒)
トップページ
>
クラス:
Numeric
>
:
ビルトイン
>
:positive?
別のキーワード
_builtin positive?
bigdecimal sign_positive_zero
bigdecimal sign_positive_finite
bigdecimal sign_positive_infinite
float positive?
検索結果
先頭1件
Numeric
#
positive? -> bool
Numeric
#
positive? -> bool
(18122.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.
positive?
# => true
0.
positive?
# => false
-1.
positive?
# => false
//}
@see
Numeric
#negative?
...