divmod(other) -> [Integer, Numeric]Ruby 2.4.0 から[permalink][rdoc][edit](Integer) → [ Integer, Integer ] (Float) → [ Integer, Float ] (Rational) → [ Integer, Rational ] (Numeric) → [ Numeric, Numeric ]-
selfをotherで割った商qと余りrを、[q, r]という 2 要素の配列にして返します。商qは常に整数ですが、余りrは整数であるとは限りません。- [PARAM]
other: -
selfに対する除数
[SEE_ALSO] Numeric#divmod
- [PARAM]