会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杰哥的博客
冷静,克制,理智
博客园
首页
新随笔
联系
订阅
管理
2020年2月27日
C++保留任意小数点位数,小数点后,四舍五入,格式化输出
摘要: 1.保留有效数字问题 #include<iostream> #include<iomanip> #include "stdlib.h" using namespace std; int main(){ double PI=3.1415926; cout<<setprecision(3)<<PI<<e
阅读全文
posted @ 2020-02-27 13:21 *Sakura/*
阅读(3707)
评论(0)
推荐(0)
公告