techishard.wordpress.com
How to Easily and Consistently Round Up with Integer Division
I’ve encountered this in different languages for different purposes. The first time was some assembler code that calculated how many total bytes it would take to hold an arbitrary number of …