fma

expect inline fun fma(a: Double, b: Double, c: Double): Double(source)

Performs a fused multiply-add operation, which computes (a * b) + c with only one rounding step. This provides better precision compared to performing the operations separately.

Return

The result of (a * b) + c computed with higher precision.

Parameters

a

The first operand to be multiplied.

b

The second operand to be multiplied.

c

The operand to be added.

actual inline fun fma(a: Double, b: Double, c: Double): Double(source)
actual inline fun fma(a: Double, b: Double, c: Double): Double(source)