Message109416
| Author |
mark.dickinson |
| Recipients |
belopolsky, eric.smith, mark.dickinson, skrah |
| Date |
2010年07月06日.19:16:18 |
| SpamBayes Score |
0.034445737 |
| Marked as misclassified |
No |
| Message-id |
<1278443781.67.0.145535463031.issue9009@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
r82614: add functionality to change FPU rounding mode (via float.__setround__ and float.__getround__ functions), on platforms that support the standard C99 fesetround and fegetround functions:
>>> float.__getround__()
'tonearest'
>>> 1e300 * 1e300
inf
>>> float.__setround__("downward")
>>> 1e300 * 1e300
1.7976931348623157e+308
This is just temporary, so that I can test that FPU rounding mode doesn't affect results of string-to-float and float-to-string conversions. I'm not planning to merge any of r82614 back to py3k. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年07月06日 19:16:21 | mark.dickinson | set | recipients:
+ mark.dickinson, belopolsky, eric.smith, skrah |
| 2010年07月06日 19:16:21 | mark.dickinson | set | messageid: <1278443781.67.0.145535463031.issue9009@psf.upfronthosting.co.za> |
| 2010年07月06日 19:16:19 | mark.dickinson | link | issue9009 messages |
| 2010年07月06日 19:16:18 | mark.dickinson | create |
|