#include <iostream>
#include <iomanip>
int main(int argc, char *argv[]) {
// double/float, rounding errors do not cancel out
std::cout << "double/float: " << std::setprecision(20) << 3.5 / 0.1f << std::endl;
// double/double, rounding errors cancel out
std::cout << "double/double: " << std::setprecision(20) << 3.5 / 0.1 << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsKICAgIC8vIGRvdWJsZS9mbG9hdCwgcm91bmRpbmcgZXJyb3JzIGRvIG5vdCBjYW5jZWwgb3V0CiAgICBzdGQ6OmNvdXQgPDwgImRvdWJsZS9mbG9hdDogIiA8PCBzdGQ6OnNldHByZWNpc2lvbigyMCkgPDwgMy41IC8gMC4xZiA8PCBzdGQ6OmVuZGw7CiAgICAvLyBkb3VibGUvZG91YmxlLCByb3VuZGluZyBlcnJvcnMgY2FuY2VsIG91dAogICAgc3RkOjpjb3V0IDw8ICJkb3VibGUvZG91YmxlOiAiIDw8IHN0ZDo6c2V0cHJlY2lzaW9uKDIwKSA8PCAzLjUgLyAwLjEgPDwgc3RkOjplbmRsOwogICAgcmV0dXJuIDA7Cn0=