double型输出格式是什么double型常规输出为“%lf”,但是double类型在默认情况下,输出小数点后6位,我们通常要减少其小数点后的长度。则可以使用“%m.nlf”的形式,其中m和n都为正整数。本教程操作环境:windows7系统、C++17版本、Dell 1