if float is a round number C code example
Example: c round function
#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);
#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);