#include <string>
#include <iostream>
int main() {
std::string S1("3.1415");
std::cout << "int : " << std::stoi(S1) <<std::endl;
std::cout << "float : " << std::stof(S1) <<std::endl;
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSB7CglzdGQ6OnN0cmluZyBTMSgiMy4xNDE1Iik7CglzdGQ6OmNvdXQgPDwgImludCAgIDogIiA8PCBzdGQ6OnN0b2koUzEpIDw8c3RkOjplbmRsOwoJc3RkOjpjb3V0IDw8ICJmbG9hdCA6ICIgPDwgc3RkOjpzdG9mKFMxKSA8PHN0ZDo6ZW5kbDsKfQ==