din.readf(%s, floattype) should work?

2010-01-29 Thread Michael P.
Is din.readf (from std.cstream in Phobos) able to read floats when using %s as the format specifier? When I used this: din.readf( %s, somedouble ); somedouble will still be nan after receiving input from the user. But when I use: din.readf( %f, somedouble ); everything goes as planned. Is this to

Re: din.readf(%s, floattype) should work?

2010-01-29 Thread Ali Çehreli
Michael P. wrote: Is din.readf (from std.cstream in Phobos) able to read floats when using %s as the format specifier? When I used this: din.readf( %s, somedouble ); somedouble will still be nan after receiving input from the user. But when I use: din.readf( %f, somedouble ); everything goes as