copysignf


Description:

public float copysignf (float x, float y)

Returns a value whose absolute value matches that of x, but whose sign bit matches that of y.

Note:

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

If x is a float.NAN, then a float.NAN with the sign bit of y is returned.

Parameters:

x

A numeric value.

y

A numeric value.


Namespace: GLib.Math
Package: glib-2.0