Is there a function to round a float in C or do I need to write my own?
float conver = 45.592346543;
I would
Sure, you can use roundf(). If you want to round to one decimal, then you could do something like: roundf(10 * x) / 10
roundf(10 * x) / 10