るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop n_bytes
  3. pop n_mails
  4. pop3 n_bytes
  5. openssl n

ライブラリ

検索結果

Numeric#positive? -> bool (63364.0)

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

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

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

@see Numeric#negative?...