Take advantage of the math library's ldexp for assembling a float by
components without division and without roundoff error for properly sized mantissas (i.e. on systems with 53 or more mantissa bits per float). Eliminates the previous implementation's rounding bias as aptly demonstrated by Tim Peters.
Showing
Please
register
or
sign in
to comment