最速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.194秒)
トップページ
>
:
インスタンスメソッド
>
:
n
>
:
a
>
:positive?
別のキーワード
_builtin to_a
matrix to_a
to_a
dbm to_a
argf.class to_a
ライブラリ
ビルトイン
(8)
クラス
Rational
(8)
検索結果
先頭1件
Rational
#
positive? -> bool
Rational
#
positive? -> bool
(24114.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 を返します。そうでない場合に f
a
lse を返します。
//emlist[例][ruby]{
R
a
tio
n
a
l(1, 2).
positive?
# => true
R
a
tio
n
a
l(-1, 2).
positive?
# => f
a
lse
//}
@see R
a
tio
n
a
l#
n
eg
a
tive?
...
Rational