会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Kiven#5197
--但行好事,莫问前程
博客园
首页
新随笔
联系
管理
订阅
2016年8月18日
关于cout输出精度问题
摘要: 1 #include 2 #include 3 void main(void) 4 { 5 cout.setf(ios::fixed); 6 cout<<setprecision(2)<<(float)0.1<<endl;//输出0.10 7 cout.unsetf(ios::fixed); 8 cout<<setprecision(2)<<(flo...
阅读全文
posted @ 2016-08-18 14:53 Kiven#5197
阅读(441)
评论(0)
推荐(0)
编辑
公告