std :: numeric_limits< double> :: digits10 =右边或左边的小数点到小数点的位数? [英] std::numeric_limits<double>::digits10 = number of digits on the right or left to the radix point?

查看:281
本文介绍了std :: numeric_limits< double> :: digits10 =右边或左边的小数点到小数点的位数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://en.wikipedia.org/wiki/Double-precision_floating-point_format 说double可以处理数字右边的16位精度,是digits10显示这个数字?

http://en.wikipedia.org/wiki/Double-precision_floating-point_format say that double can handle 16 digits of precision to the right part of the number, is digits10 show this number ?

推荐答案

实际上,它只是有意义的数字的数量。点。您可以拥有 12345678901234.5 0.0000123456789012345

Actually it's just the number of meaningful digits. Point. You can have 12345678901234.5 or 0.0000123456789012345.

这篇关于std :: numeric_limits< double> :: digits10 =右边或左边的小数点到小数点的位数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆