I read some stuff from an input file, saved it as a type string, did somethings to it, then tried converting it back to a float by doing:
float finalNum = atof( (char*)origString.c_str())
the original number is something like: -13679.0978570361
the final number after the conversion is: -13679.1
How can I avoid the loss of precisions?