#include <iostream>
#include <sstream>
using namespace std;
int main() {
double x = 3.76f;
float y = 3.76f;
std::string str = "3.76";
std::stringstream ss;
ss << str;
float out_val;
ss >> out_val;
double dout_val = out_val;
std::cout << "x = " << x << std::endl;
std::cout << "y = " << y << std::endl;
std::cout << "outval = " << out_val << std::endl;
std::cout << "dout_val = " << dout_val << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJZG91YmxlIHggPSAzLjc2ZjsKCWZsb2F0IHkgPSAzLjc2ZjsKCQoJc3RkOjpzdHJpbmcgc3RyID0gIjMuNzYiOwoJc3RkOjpzdHJpbmdzdHJlYW0gc3M7CiAgICBzcyA8PCBzdHI7CiAgICBmbG9hdCBvdXRfdmFsOwogICAgc3MgPj4gb3V0X3ZhbDsKICAgIGRvdWJsZSBkb3V0X3ZhbCA9IG91dF92YWw7CglzdGQ6OmNvdXQgPDwgInggPSAiIDw8IHggPDwgc3RkOjplbmRsOwoJc3RkOjpjb3V0IDw8ICJ5ID0gIiA8PCB5ICA8PCBzdGQ6OmVuZGw7CglzdGQ6OmNvdXQgPDwgIm91dHZhbCA9ICIgPDwgb3V0X3ZhbCAgPDwgc3RkOjplbmRsOwoJc3RkOjpjb3V0IDw8ICJkb3V0X3ZhbCA9ICIgPDwgZG91dF92YWwgIDw8IHN0ZDo6ZW5kbDsKCXJldHVybiAwOwp9