double与float的输入输出格式

double类型的数据输入时用%lf,输出时用%f;

float类型的数据输入时用%f,输出时用%f。

原文地址:https://www.cnblogs.com/Guser/p/13686811.html