Title: Fix ldexp to prevent math range errors by YashSuthar983 · Pull Request #6216 · RustPython/RustPython · GitHub
Open Graph Title: Fix ldexp to prevent math range errors by YashSuthar983 · Pull Request #6216 · RustPython/RustPython
X Title: Fix ldexp to prevent math range errors by YashSuthar983 · Pull Request #6216 · RustPython/RustPython
Description: Implemented IEEE 754-compliant handling for large numbers to avoid overflow and represent results using scientific notation. Fixes #5471 Summary by CodeRabbit Bug Fixes More accurate floating-point exponent scaling with precise IEEE‑754-aware handling and rounding. Corrected behavior for very large or very small exponents, including improved handling of subnormal values. Enhanced overflow and underflow detection with proper signed-zero returns where applicable. Maintains previous results for normal-range values while fixing edge-case math inaccuracies.
Open Graph Description: Implemented IEEE 754-compliant handling for large numbers to avoid overflow and represent results using scientific notation. Fixes #5471 Summary by CodeRabbit Bug Fixes More accurate floating-po...
X Description: Implemented IEEE 754-compliant handling for large numbers to avoid overflow and represent results using scientific notation. Fixes #5471 Summary by CodeRabbit Bug Fixes More accurate floating-po...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6216
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:237c0ce3-ce94-86a0-a0d5-94e41bbd2200 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BA26:2C09F1:55B75F:6D4A1A:696B0EAD |
| html-safe-nonce | 08998c7b1f4817e2ac5532a3ef2e1410b80c48e87c97f8757d957384ba193861 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTI2OjJDMDlGMTo1NUI3NUY6NkQ0QTFBOjY5NkIwRUFEIiwidmlzaXRvcl9pZCI6IjIzNjY2MTM0NDM4NTEyNTk1NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7b242f43f2590a5c14815eb72185bfdd6c65209b1e4d24dd6e2c7ed105ada49c |
| hovercard-subject-tag | pull_request:2947476941 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6216/files |
| twitter:image | https://avatars.githubusercontent.com/u/183753953?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/183753953?s=400&v=4 |
| og:image:alt | Implemented IEEE 754-compliant handling for large numbers to avoid overflow and represent results using scientific notation. Fixes #5471 Summary by CodeRabbit Bug Fixes More accurate floating-po... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width