#include <iostream>
using namespace std;
int main() {
float num = 3.14159;
cout << fixed;
cout.precision(2);
cout << num << endl;
printf("%.2f", num); //apenas se for usar em C puro, não use em C++
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBmbG9hdCBudW0gPSAzLjE0MTU5OwogICAgY291dCA8PCBmaXhlZDsKICAgIGNvdXQucHJlY2lzaW9uKDIpOwogICAgY291dCA8PCBudW0gPDwgZW5kbDsKICAgIHByaW50ZigiJS4yZiIsIG51bSk7IC8vYXBlbmFzIHNlIGZvciB1c2FyIGVtIEMgcHVybywgbsOjbyB1c2UgZW0gQysrCglyZXR1cm4gMDsKfQ==