ABS
This command will return the positive equivalent of a value.
Return Float=ABS(Value)
Value
Float
This value is a float number such as 0.5
This value is a float number such as 0.5
The value can be a real or integer number. The return value can be a real or integer number.
print abs(1.23) :` 1.23
print int(1.23) :` 1
print floor(1.23) :` 1
print ceil(1.23) :` 2
print
print abs(-1.23) :` 1.23
print int(-1.23) :` -1
print floor(-1.23) :` -2
print ceil(-1.23) :` -1
print
wait key
CORE Commands Menu
Index