#include <iostream>
#include <iomanip>
using namespace std;
int main() {
// initialize a floating-point
float num = 2.71828;
cout << "Original number is: " << num;
cout << "\n";
// print 2 decimal places
cout << "The number with 2 decimal places is: ";
cout << fixed << setprecision(2) << num;
cout << "\n\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKI2luY2x1ZGUgPGlvbWFuaXA+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgogIC8vIGluaXRpYWxpemUgYSBmbG9hdGluZy1wb2ludCAKCiAgZmxvYXQgbnVtID0gMi43MTgyODsKCiAgY291dCA8PCAiT3JpZ2luYWwgbnVtYmVyIGlzOiAiIDw8IG51bTsKCiAgY291dCA8PCAiXG4iOwoKICAvLyBwcmludCAyIGRlY2ltYWwgcGxhY2VzCgogIGNvdXQgPDwgIlRoZSBudW1iZXIgd2l0aCAyIGRlY2ltYWwgcGxhY2VzIGlzOiAiOwoKICBjb3V0IDw8IGZpeGVkIDw8IHNldHByZWNpc2lvbigyKSA8PCBudW07CgogIGNvdXQgPDwgIlxuXG4iOwoKICByZXR1cm4gMDsKCn0=