Subj : Re: String to double To : borland.public.cpp.borlandcpp From : Jaded hobo Date : Thu Apr 22 2004 09:34 am Of course there's always the C++ way: std::string FloatString( "0.1234" ); std::istringstream stream; stream.str( FloatString); float Number; stream >> Number; "john blackburn" schreef in bericht news:4074333a@newsgroups.borland.com... > Wayne A. King wrote: > > > On Wed, 07 Apr 2004 10:10:02 +0100, john blackburn > > wrote: > > > >>I have a similar requirement for string conversion to int such as "3456". > > > > strtol() or strtoul() > > > > > > -- > > Wayne A. King > > (waking@idirect.com, Wayne_A_King@compuserve.com) > > Wayne, > > Many thanks for your suggestions. I can probably get away with strtod() > but strtol() and strtoul() are not portable to Unix/Linux. > > I may have to end up implementing the conversions myself. > > Again thanks for taking the time to help > > > John .