실수형 float
float(자료형) f(변수명) = 실수;(변수값)
printf(%f\n",f);소수점 다량 float f = 66.6; printf("%f\n",f); >66.600000
소수점 자리수 정하기
float f = 실수;
%.소숫점자리숫자f\nflaot f = 66.6; printf("%.2f\n",f); //소숫점 2자리까지 표기 >66.60
더블형 실수
double d = 실수;
%.자리수lf\ndouble d = 4.443;; printf("%.2lf\m",d); >4.44 // 3자리에서 반올림