¡@

Home 

c++ Programming Glossary: numtoround

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

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.. roundUp int numToRound int multiple if multiple 0 return numToRound int roundDown int numToRound multiple multiple int roundUp roundDown.. multiple if multiple 0 return numToRound int roundDown int numToRound multiple multiple int roundUp roundDown multiple int roundCalc..