Is there a way within C++ of setting a definitive amount of decimal points to a float value? for example if i were to record multiple times as float values, i would most likely generate different results (in terms of number of decimal places) and would like to generate numbers of the same lengths i.e if a number were to return as 1.33
and there are other numbers returning as say 1.333
i would like to make the first result read as 1.330
.
I understand there are methods of limiting the amount of decimal places such as setprecision()
but i do not want to loose accuracy of my times.