IEEErem

inline fun Double.IEEErem(divisor: Double): Double(source)
inline fun Float.IEEErem(divisor: Float): Float(source)

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) is NaN, when x is NaN or y is NaN or x is +Inf|-Inf or y is zero. - x.IEEErem(y) == x when x is finite and y is infinite.

Since Kotlin

1.2

See also

external fun Double.IEEErem(divisor: Double): Double(source)
external fun Float.IEEErem(divisor: Float): Float(source)

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) is NaN, when x is NaN or y is NaN or x is +Inf|-Inf or y is zero. - x.IEEErem(y) == x when x is finite and y is infinite.

Since Kotlin

1.3

See also