/*
Example of floating point precision.
Author: Peter R. Bloomfield.
Web: avidinsight.uk
*/
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
float f1 = 0.12345123451234512345f;
float f2 = 0.00000000000000012345f;
cout << fixed << setprecision(20);
cout << "f1 = " << f1 << endl;
cout << "f2 = " << f2;
return 0;
}
LyoKRXhhbXBsZSBvZiBmbG9hdGluZyBwb2ludCBwcmVjaXNpb24uCkF1dGhvcjogUGV0ZXIgUi4gQmxvb21maWVsZC4KV2ViOiBhdmlkaW5zaWdodC51awoqLwoKI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJZmxvYXQgZjEgPSAwLjEyMzQ1MTIzNDUxMjM0NTEyMzQ1ZjsKICAgIGZsb2F0IGYyID0gMC4wMDAwMDAwMDAwMDAwMDAxMjM0NWY7CgogICAgY291dCA8PCBmaXhlZCA8PCBzZXRwcmVjaXNpb24oMjApOwogICAgY291dCA8PCAiZjEgPSAiIDw8IGYxIDw8IGVuZGw7CiAgICBjb3V0IDw8ICJmMiA9ICIgPDwgZjI7CiAgICAKCXJldHVybiAwOwp9