@FRAC |
Syntax: | At Function |
| Operands: | none | |
| Burn: | not burnable | |
Fractional part | Hardware: | All |
Returns the fractional part of the given number
@FRAC[n], n is a signed number in the range -2147483648 to 2147483647.
N/A
| Usage | Value |
|---|---|
| While Moving (No RIO) | Yes |
| In a Program | Yes |
| Command Line | Yes |
| Controller Usage | All |
| Default Value | N/A |
| Default Format | N/A |
@INT[n] - Integer part
:MG @FRAC[1.2] 0.2000 :MG @FRAC[-2.4] -0.4000