📜  c float remove trailing 0 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:34.109000             🧑  作者: Mango

代码示例1
double x = 4.300;
double e = 7.34200;
printf("%g \n %g", x, e);
// will print 4.3 and then 7.342