Message96868
Only the argument with one decimal place precision does NOT overflow.
Python 2.7a1+ (trunk:76872, Dec 21 2009, 09:54:29)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import expm1
>>> expm1(709.78271289338397)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> expm1(709.782712893)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> expm1(709.7827)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> expm1(709.782)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> expm1(709.78)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> expm1(709.7)
1.6549840276802644e+308 |
|
Date |
User |
Action |
Args |
2009-12-24 17:38:37 | slmnhq | set | recipients:
+ slmnhq, mark.dickinson |
2009-12-24 17:38:37 | slmnhq | set | messageid: <1261676317.1.0.216316197152.issue7575@psf.upfronthosting.co.za> |
2009-12-24 17:38:35 | slmnhq | link | issue7575 messages |
2009-12-24 17:38:35 | slmnhq | create | |
|