• No : 1412
  • Displayed Date : 2023/04/25 19:00
  • Print

How can I round the result of a division with D300win?

How can I round the result of a division with D300win?
Category : 

Answer

The quotient of a division of the INT or DINT type is rounded down. Accordingly, convert it into the REAL type, perform the division as the REAL type and convert it back to the INT type. The value is rounded at the time of REAL-INT conversion.