self % other -> NumericRuby 2.4.0 から[permalink][rdoc][edit]modulo(other) -> Numeric-
selfをotherで割った余り(剰余)を返します。Integerオブジェクトを左項とする算術演算子%はこのメソッドの呼び出しになります。p 5 % 3 # => 2 p 5 % -3 # => -1 p -5 % 3 # => 1 p -5 % -3 # => -2- [PARAM]
other: -
selfに対する除数
- [PARAM]