Galil Motion Control optcom Page 178
Optima DMC-1xxx and DMC-18x2 Command Reference
@RND[n]
i
167
@RND[n]
FUNCTION: Round
DESCRIPTION:
Rounds the given number to the nearest integer
ARGUMENTS: @RND[n]
n is a signed number in the range -2147483648 to 2147483647.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
-
In a Program
Yes
Default Format
-
Command Line
Yes
Controller Usage
ALL
RELATED COMMANDS:
@INT
Truncates to the nearest integer
EXAMPLES:
:MG @RND[1.2]
1.0000
:MG @RND[5.7]
6.0000
:MG @RND[-1.2]
-1.0000
:MG @RND[-5.7]
-6.0000
:MG @RND[5.5]
6.0000
:MG @RND[-5.5]
-5.0000
: