标签: 实型数据

1 篇文章

thumbnail
实型数据与字符型数据
计算机对浮点类型的运算不精确。 #include <stdio.h> int main() { float a = 3.1;//单精度。使用4个字节32位 double b = 3.1;//双精度。8字节64位 long double c = 3.1;//长双精度。16字节128位 printf("a=%f b=%f c=%Lf ",a…