fun Double.IEEErem(divisor: Double): Double
fun Float.IEEErem(divisor: Float): Float
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: -
y is zero. -
x.IEEErem(y) == x when
x is finite and
y is infinite.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.