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

See:




2022 vala-language.org