Skip to main content
 首页 » 编程设计

Python 溢出错误 : math range error

2025年02月15日7artech

尝试此计算时出现溢出错误,

output=math.exp(1391.12694245)*100 

我知道发生这种情况是因为使用的数字“超出了 double 范围”。 但是有什么办法可以解决这个问题并获得输出值。 有人可以帮忙吗?