min


Description:

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

Calculates the minimum of a and b.

Example: Calculate the minimum via .min():

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

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

Parameters:

a

a numeric value.

b

a numeric value.

Returns:

the minimum of a and b.