ABS()

Since version 2.0

Syntax:

abs(<int expression>) | abs%(<float expression>)

The ABS() function returns the absolute value (value without the sign) of the given numeric expression.

Argument type and return type must match.

Examples:

print abs(-3)
rem -- will print 3

print abs%(-3.14)
rem -- will print 3.14

Discussion

Enter your comment. Wiki syntax is allowed:
A A​ H K O
 
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies