min


Description:

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

Example: Calculate the minimum via .min():

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

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