after (str to f) - only 1 digit after floating point

Hi,

i'm getting only one digit after floating point after conversion from string to float. Have tryed from standart functions to i don't know.. the problems is that conversion whatever it would be (strtod(), stringstream >> float, atof(), don't even rembember all other wacky ways to do that) brings me only one or none (if i have number.00) digits after floating point.

Would be very happy to hear something that might help..

p.s. oh, if that matters - i get string from file via getline..
Last edited on
Topic archived. No new replies allowed.