abs
Description:
Computes the absolute value
Example: Compute the absolute value:
public static int main (string[] args) {
long val = -10;
print ("%ld\n", val.abs ());
return 0;
}
valac --pkg glib-2.0 long.abs.vala
Returns:
The absolute value |