 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
M. Hrabowski Guest
|
Posted: Sun Sep 26, 2004 8:27 pm Post subject: Re: String in long double (80 bit) konvertieren |
|
|
Torsten Bencke wrote:
| Quote: | Hallo,
gibt es in der C-Bibliothek/STL eine Funktion, die das kann?
|
Vielleicht ganz naiv mit einem input string stream?
(ungetestet)
std::string dStr="1.948572348623874637";
long double d;
std::istringstream is( dStr );
if( is >> d )
{
// ok
}
Gruß,
Maxim
--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|