remainderf
Description:
Computes the remainder of dividing x
by y
.
Note:
Remember to link the math library: valac -X -lm ...
The return value is x - n * y
, where n is the value x / y
, rounded to the nearest integer.
If this quotient is 1/2 (mod 1)
, it is rounded to the nearest even number (independent of the current rounding mode). If the
return value is 0, it has the sign of x
.
Parameters:
x |
A numeric value. |
y |
A numeric value. |
Namespace: GLib.Math
Package: glib-2.0