| 67 | */ |
| 68 | template <typename T, typename = typename std::enable_if<std::is_floating_point<T>::value>::type> |
| 69 | inline T round_half_up(T value) |
| 70 | { |
| 71 | return std::floor(value + 0.5f); |
| 72 | } |
| 73 | |
| 74 | /** Round floating-point value with half value rounding to nearest even. |
| 75 | * |