sprintf(result, "(%g,%g)", a,b),其中的%g代表什么?非常感谢

wetheart 2003-04-26 12:07:59
谢谢,在线等
...全文
222 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wetheart 2003-04-26
  • 打赏
  • 举报
回复
谢谢大家,我刚来这里,不懂这里的规矩,好像应该给分是吗,怎样才能给别人分?
basboy 2003-04-26
  • 打赏
  • 举报
回复
g double Signed value printed in f or e format, whichever is more compact for the given value and precision. The e format is used only when the exponent of the value is less than –4 or greater than or equal to the precision argument. Trailing zeros are truncated, and the decimal point appears only if one or more digits follow it.


sylmoon 2003-04-26
  • 打赏
  • 举报
回复
up

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧