instance method Float#%
self % other -> Float
modulo(other) -> Float
-
算術演算子。剰余を計算します。
- [PARAM] other:
- 二項演算の右側の引数(対象)
# 剰余 p 3 % 1.2 #=> 0.6 p 3.0 % 0 #=> NaN
class Float
self % other -> Float
modulo(other) -> Float
算術演算子。剰余を計算します。
# 剰余 p 3 % 1.2 #=> 0.6 p 3.0 % 0 #=> NaN