you can also round to the nearest integer in amazing mathemagical ways!![]()
Since casting to an int will just truncate the decimal part.Code:int RoundedValue = static_cast<int>(dblValue + .5);
|
Results 1 to 6 of 6
Hybrid View
|
Click Here to Expand Forum to Full Width |