¡@

Home 

c++ Programming Glossary: roundup

C++: Rounding up to the nearest multiple of a number

http://stackoverflow.com/questions/3407012/c-rounding-up-to-the-nearest-multiple-of-a-number

to know what is the best way to do this in C int roundUp int numToRound int multiple if multiple 0 return numToRound.. int roundDown int numToRound multiple multiple int roundUp roundDown multiple int roundCalc roundUp return roundCalc Update.. multiple int roundUp roundDown multiple int roundCalc roundUp return roundCalc Update Sorry I probably didn't make intention..