Stringstream gives me floats when I create it with a 'double number???'

I have a function that use stringstream to parse strings to a numerical values.
stringstream conversor_string_number;
double My_d;
conversor_string_number.str("123456.1234567");
conversor_string_number>>My_d;

conversor_string_number.str("123.1234567");
conversor_string_number>>My_d;


Ok I have 123456 and 123.123 ????????
Whats happen ?
Have to define something ? flags ?
Thanks
[code] "Please use code tags" [/code]
Ok I have 123456 and 123.123 ????????
¿how do you know? probably you are not outputting the value with enough precision.
Yes, your right !!
Topic archived. No new replies allowed.