后缀e+;在python中,浮点数的末尾是多少?
我使用后缀e+;在python中,浮点数的末尾是多少?,python,python-2.7,Python,Python 2.7,我使用random.uniform(1,2**100)生成范围(0,2**100)的随机浮点。一些结果是: >>> random.uniform(1,2**100) 5.9798650563331964e+29 >>> random.uniform(1,2**100) 8.439133849811236e+29 >>> random.uniform(1,2**100) 1.1367823572756921e+30 >>> r
random.uniform(1,2**100)
生成范围(0,2**100)
的随机浮点。一些结果是:
>>> random.uniform(1,2**100)
5.9798650563331964e+29
>>> random.uniform(1,2**100)
8.439133849811236e+29
>>> random.uniform(1,2**100)
1.1367823572756921e+30
>>> random.uniform(1,2**100)
6.467828850316163e+29
>>> random.uniform(1,2**100)
6.114089228136624e+29
>>> random.uniform(1,2**100)
5.8262139039159224e+29
我无法在每个数字的末尾得到e+29
的解释 它被称为as,是的纯文本表示
1.234e+56
表示1.234*10**56
或更易于人类阅读的形式1.234×1056。“e+number”表示正数的幂10,如果是负数,则类似于“e-number” 这是一个非常大的数字1.23e+45
表示1.23*10**45
或123xxx
,其中xxx
为43个零。如果您想提供帮助,您应该提供示例和更多解释,因为提问者显然不熟悉数学符号。