Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstring>
- #include <cstdlib>
- int main() {
- std::string num = "0.6666666";
- double temp = atof(num.c_str());
- std::cout << num << " " << temp << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement