1 research outputs found
Easy Accurate Reading and Writing of Floating-Point Numbers
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.Comment: 8 pages, 6 figure