在python中,浮点数末尾的后缀e+number是什么意思?

2024-04-28 23:11:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用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的解释。


Tags: 数字randomuniform末尾浮点数