remquof


Description:

public float remquof (float x, float y, out int quo)

Computes the remainder and part of the quotient upon division of x by y.

Note:

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

The GLib.Math.remquof function computes the remainder and part of the quotient upon division of x by y. A few bits of the quotient are stored via the quo output variable. The remainder is returned as function value.

The value of the remainder is the same as that computed by the GLib.Math.remainder function.

The value stored via the quo output variable has the sign of x / y and agrees with the quotient in at least the low order 3 bits.

Parameters:

x

A numeric value.

y

A numeric value.

quo

An output variable for the quotient.


Namespace: GLib.Math
Package: glib-2.0