Galil DMC-1400 Tablet Accessory User Manual


 
174 @RND[n] DMC-1400 Series Command Reference
@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
: