instance method Integer#odd?

odd? -> bool[permalink][rdoc][edit]

自身が奇数であれば真を返します。そうでない場合は偽を返します。


5.odd?     # => true
10.odd?    # => false