max


Description:

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

Calculates the maximum of a and b.

Example: Calculate the maximum via .max():

public static int main (string[] args) {
// Output: ``max ('a', 'x') = x``
unichar max = unichar.max ('a', 'x');
print ("max ('a', 'x') = %s\n", max.to_string ());
return 0;
}

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

Parameters:

a

a numeric value.

b

a numeric value.

Returns:

the maximum of a and b.