You would get 8 2/3 which becomes 8.66666.... This rounds up to nine because .6 >= .5 I'm not an Ada programmer, but this question is not about Ada so I thought it would be ok. "Cephus�" wrote in message news:veqcdrsf7o7q57@corp.supernews.com... > I am trying to remember the "golden rule" for integer division rounding. > > I am trying to average something (both integers) and I can't remember how to > round without using floating point. > > Like say I am trying to divide 26/3 --- I would get 8 remainder 2 > > but that should round up to 9. How can I do this? I know it has something to > do with the dividend....but I can't for the life of me remember. thanks! > > Beau > >