标签:code float ios ++ bsp cout precision field 输出
std::cout.setf(std::ios_base::fixed, std::ios_base::floatfield); std::cout.precision(3); cout << "A:" << 0.1555 << endl; cout << "B:" << 0.155 << endl;
标签:code float ios ++ bsp cout precision field 输出
原文地址:https://www.cnblogs.com/ScarecrowMark/p/11621848.html