6.5.10 TRUNC
Operand
Input/output
Data type
IN
VD, ID, QD, MD, SD, SMD, LD, AC, constant, *VD, *LD, *AC
Real number
OUT
VD, ID, QD, MD, SD, SMD, LD, AC, *VD, *AC, *LD
Double integer
TRUNC:Instruction converts 32 bits of real number to 32
bits integer,and the result is inserted into the variable
specified by the OUT.
Only the integer part of the real number is converted, and
the fractional part is discarded.
Example:
98
Made with FlippingBook - Online magazine maker