Alright, well to save you the trouble, I’ll write you a short piece of code for rounding decimal places so you have to think less:
float FloatForRound = 3.14159265
int DecimalsToKeep = 5
FloatForRound = (int)(FloatForRound * 10^DecimalsToKeep) / 10^DecimalsToKeep
Obviously doesn’t round to nearest at the end, but you get the point in case you didn’t automatically know what to do.