Is there a function to round a float in C or do I need to write my own?
float conver = 45.592346543;
I would
#include double round(double x); float roundf(float x);
Don't forget to link with -lm. See also ceil(), floor() and trunc().