max


Description:

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

Example: Calculate the maximum via .max():

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

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