sprintf四舍五入
摘要:#include<stdio.h> int main(int argc,const char*argv[]){ double a=0.123456789; char s1[50]; sprintf(s1,"%.1f",a); printf("取1位小数结果为:%s\n",s1); sprintf(s
阅读全文
posted @ 2021-01-05 12:02
posted @ 2021-01-05 12:02
posted @ 2020-08-04 16:59
posted @ 2020-08-03 19:36