15 #ifndef ARSENALGEAR_MATH_HPP
16 #define ARSENALGEAR_MATH_HPP
41 inline T
roundoff( T value,
unsigned char prec )
43 T pow_10 = pow( 10.0f,
static_cast<T
> ( prec ) );
45 return round( value * pow_10 ) / pow_10;
61 return !( value < low ) && ( value < high );
Definition: stream.cpp:22
T roundoff(T value, unsigned char prec)
Function to round a floating point to n-th decimal place after comma.
Definition: math.hpp:41
bool IsInBounds(T value, T low, T high)
Function to check if a number lies in a certain bound or not.
Definition: math.hpp:59