Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
Easy Accurate Reading and Writing of Floating-Point Numbers - MaRDI portal

Easy Accurate Reading and Writing of Floating-Point Numbers

From MaRDI portal
Publication:6511840

arXiv1310.8121MaRDI QIDQ6511840

Aubrey G. Jaffer


Abstract: Presented here are algorithms for converting between (decimal) scientific-notation and (binary) IEEE-754 double-precision floating-point numbers. By employing a rounding integer quotient operation these algorithms are much simpler than those previously published. The values are stable under repeated conversions between the formats. Unlike Java-1.8, the scientific representations generated use only the minimum number of mantissa digits needed to convert back to the original binary values.




Has companion code repository: https://github.com/coconut2015/double2string








This page was built for publication: Easy Accurate Reading and Writing of Floating-Point Numbers

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6511840)