📅  最后修改于: 2022-03-11 14:44:56.129000             🧑  作者: Mango
#include
#include
#include
â
int main()
{
double d = 122.345;
cout << fixed << setprecision(2) << d;
//the setprecision can vary as per required
}