Subj : String to double To : borland.public.cpp.borlandcpp From : john blackburn Date : Wed Apr 07 2004 11:10 am I am writing a cross assembler for an old museum mainframe and need to initialize floating point constant values. I need to convert a C++ string such as "0.15406" to a double so that I can subsequently extract a 19 bit mantissa from it into a 32 bit int (this old machine has half support in hardware for floating point i.e. it supports the mantissa but the exponent is handled in software). I have a similar requirement for string conversion to int such as "3456". I haven't seen in Stroustrup a method/function for converting the string to a double; is there one and what is the syntax if it exists ? Clearly I can write one but I want to use the standard methods wherever possible. Also, I want to avoid anything from C++ Builder GUI because I want to allow others to recompile it to Linux/Unix/Mac etc. Hence, I want to stick to the C++ standard library. Thank you for looking at this John .