I am finding that atof is limited in the size of a string that it will parse. Example float num=atof("49966.73"); cout<<num; shows 49966.7 num=atof("499966.73"); cout<<num; shows 499966 I need something that will parse the whole string accurately, to a floating point number, not just the first 6 characters Source: Windows Que..
I’m reading double values from file as strings and parsing them with std::atof. Afterwards, I’m using the values as keys in a unordered map. It’s seems to be working correctly, but is it guaranteed to work in 100% of the cases? I’m asking the question because it’s extremely hard to produce identical double value if ..