Author Topic: Question about Division  (Read 206 times)


  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Question about Division
« on: February 14, 2017, 10:17:20 am »
The documentation is incorrect for integer but correct for short and byte.

The "\" operation divides two integer types (Byte, Short or Integer) and promotes one of the variables to the larger types if they are not the same, divides and returns a variable of that type. So two bytes return a type, a Short and a byte return a short, etc.

The "/" operation divides two variables by promoting the two variables to an float and return a float.