Top index Wirbel home

::abs

abs(a) - returns absolute value of a

abs(a) returns a if a < 0 and a otherwise. This function works for int, float and all other datatypes then can be compared to 0

See also

max, min, sign