You see that is different respect to the input from the file, from where came the last numbers?? if the number is integer or the decimal is 5 it is ok, but if the values are different I have this a lot digits… why??
As you can see in the cout above, Pepe’s solution does not solve your problem, 6.7999999999999998 is just “more equal” to 6.8 than 6.80000019. But then: how precise is the measurement the 6.8 comes from? Is the small uncertainty introduced by the Float_t or Double_t really relevant?