IEEErem
Computes the remainder of division of this value by the divisor value according to the IEEE 754 standard.
The result is computed as r = this - (q * divisor) where q is the quotient of division rounded to the nearest integer, q = round(this / other).
Special cases:
x.IEEErem(y)isNaN, whenxisNaNoryisNaNorxis+Inf|-Inforyis zero.x.IEEErem(y) == xwhenxis finite andyis infinite.
Since Kotlin
1.2See also
Computes the remainder of division of this value by the divisor value according to the IEEE 754 standard.
The result is computed as r = this - (q * divisor) where q is the quotient of division rounded to the nearest integer, q = round(this / other).
Special cases:
x.IEEErem(y)isNaN, whenxisNaNoryisNaNorxis+Inf|-Inforyis zero.x.IEEErem(y) == xwhenxis finite andyis infinite.