Galil Motion Control optcom Page 103
Optima DMC-1xxx and DMC-18x2 Command Reference
@FRAC[n]
i
92
@FRAC[n]
FUNCTION: Fractional part
DESCRIPTION:
Returns the fractional part of the given number
ARGUMENTS: @FRAC[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
Integer
part
EXAMPLES:
:MG @FRAC[1.2]
0.2000
:MG @FRAC[-2.4]
-0.4000
: