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