6.5.9 ROUND
Input/output Operand
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, *LD, *AC
Double integer
The ROUND instruction converts the real number value to a
double integer value and the result is inserted into the
variable specified by the OUT. If the fractional part is equal to
or greater than 0.5, the integer part will be added to 1.
Example:
97
Made with FlippingBook - Online magazine maker