S
Sarath
Dear All,
I've a float variable with value float f = 43.125623; // some number
I need to consider only 3 digits (43.125) from the precision because
the on doing further calculations the further precision digits should
not be affected.
Converting to string with desired precesing and converting back again
to float is a solution, but is there any better way to manage this?
I've a float variable with value float f = 43.125623; // some number
I need to consider only 3 digits (43.125) from the precision because
the on doing further calculations the further precision digits should
not be affected.
Converting to string with desired precesing and converting back again
to float is a solution, but is there any better way to manage this?