Galil Motion Control optcom Page 23
Optima DMC-1xxx and DMC-18x2 Command Reference
@ABS[n]
i
12
@ABS[n]
FUNCTION: Absolute value
DESCRIPTION:
Takes the absolute value of the given number. Returns the value if positive, and returns -1
times the value if negative.
ARGUMENTS: @ABS[n] where
n is a signed number in the range -2147483647 to 2147483647
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
@SQR
Square
Root
EXAMPLES:
:MG @ABS[-2147483647]
2147483647.0000
: