This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
For some reason I did a bunch of these in the waning days of my COBOL life, and just added divisor-1 before dividing. This linecount and pagecount case came up for a character mode help system. For ints: