Integer Division

Just as the backslash (/) is the division operator, the forward slash () is the integer division operator. Use it when you need to divide numbers but require the result to be an integer.

Intdivision

Beware that the numbers are rounded before the division takes place. For that reason, I’ve never seen a need to use this operator with non-integer numbers.

Posted in Uncategorized

7 thoughts on “Integer Division

  1. I thought that tis was the backslash:
    and this this the forward slash: / (into the reading direction)

    Then again, nothing surprises me nowadays, so if it turns out I’m wrong, so be it.

    Peter


Posting code? Use <pre> tags for VBA and <code> tags for inline.

Leave a Reply

Your email address will not be published. Required fields are marked *