Posts Tagged ‘Numbers’

Rounding Numbers In C++

Ever wanted some handy functions to round those pesky floating point values to whole integers?

In C# you can use the Math.Round() method which has more than half a dozen overloads supporting different data types and parameters to specify the rounding technique used.

In C++ there isn’t a std::round() equivalent, so let’s take a look at the options…
Read more…

Be the first to comment - What do you think?  Posted by the big dog - May 26, 2011 at 02:40

Categories: Development   Tags: , , ,