@FRAC

Syntax:At Function
Operands:none
Burn:not burnable

Fractional part

Hardware: All

Full Description

Returns the fractional part of the given number

Arguments

@FRAC[n], n is a signed number in the range -2147483648 to 2147483647.

Operand Usage

N/A

Usage

Usage and Default Detail
UsageValue
While Moving (No RIO)Yes
In a ProgramYes
Command LineYes
Controller UsageAll
Default ValueN/A
Default FormatN/A

Related Commands

@INT[n] - Integer part

Examples:

:MG @FRAC[1.2]
 0.2000
:MG @FRAC[-2.4]
 -0.4000