max


Description:

[ CCode ( cname = "MAX" ) ]
public static double max (double a, double b)

Example: Calculate the maximum via .max():

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

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