るりまサーチ

最速Rubyリファレンスマニュアル検索!
10件ヒット [1-10件を表示] (0.033秒)

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric magnitude
  4. numeric coerce
  5. numeric truncate

ライブラリ

クラス

検索結果

Numeric#positive? -> bool (39132.0)

self が 0 より大きい場合に true を返します。そうでない場合に false を返します。

...self が 0 より大きい場合に true を返します。そうでない場合に false を返します。

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

@
see Numeric#negative?...