Galil DMC-1400 用户手册
14 ● @ABS[n]
DMC-1400 Series Command Reference
@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:
Square Root
EXAMPLES:
:MG @ABS[-2147483647]
2147483647.0000
2147483647.0000
: