Round float value to nearest integer. If fractional part is less then 0.5, return integer part. If fractional part is greater or equal to 0.5, returns integer part + 1.
template<class IntegerType, class FloatType> IntegerType Round(const FloatType value);
Namespace: | nitisa::math |
Include: | Nitisa/Modules/Math/Utils.h |