るりまサーチ

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.019秒)
トップページ > クラス:Rational[x] > クエリ:Rational[x] > クエリ:negative?[x]

別のキーワード

  1. _builtin rational
  2. rational **
  3. json/add/rational to_json
  4. json/add/rational json_create
  5. rational numerator

ライブラリ

検索結果

Rational#negative? -> bool (39132.0)

self が 0 未満の場合に true を返します。そうでない場合に false を返します。

...self が 0 未満の場合に true を返します。そうでない場合に false を返します。

//emlist[例][ruby]{
Rational
(1, 2).negative? # => false
Rational
(-1, 2).negative? # => true
//}

@see Rational#positive?...