min


Description:

[ CCode ( cname = "MIN" ) ]
public static float min (float a, float b)

Example: Calculate the minimum via .min():

public static int main (string[] args) {
// Output: ``min (0.1f, 0.9f) = 0.1``
float min = float.min (0.1f, 0.9f);
print ("min (0.1f, 0.9f) = %g\n", min);
return 0;
}

valac --pkg glib-2.0 float.min.vala