Trinithis
08-28-2007, 06:43 PM
How can I parse a double from a char or a string in C++?
#include <cstdlib>
// ...
double dbl = strtod(cptr, NULL);
dbl = strtod(str.c_str(), NULL);
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.