fma


Description:

public double fma (double x, double y, double z)

Computes x * y + z.

Note:

Remember to link the math library: valac -X -lm ...

The result is rounded according to the rounding mode determined by the value of ROUNDS . ROUNDS indicates the implementation-defined rounding behavior for floating- point addition, and has one of the following values:

  • -1 The rounding mode is not determinable.
  • 0 Rounding is towards 0.
  • 1 Rounding is towards nearest number.
  • 2 Rounding istowards positive infinity.
  • 3 Rounding is towards negative infinity.
  • Other values represent machine-dependent, non-standard rounding modes.

Parameters:

x

A numeric value.

y

A numeric value.


Namespace: GLib.Math
Package: glib-2.0