c+ function to round off code example
Example: c++ round function
double round(double x);
float round(float x);
long double round(long double x);
double round(T x); // For integral type
double round(double x);
float round(float x);
long double round(long double x);
double round(T x); // For integral type