aeson and dlist in HP 2013.4.0.0

Carter Schonwald carter.schonwald at gmail.com
Wed Nov 27 22:18:17 GMT 2013


agreed, I think that would be a sensible choice.  The key point being,
every representable number should have a unique representation.


On Wed, Nov 27, 2013 at 5:13 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

>
> On Wed, 27 Nov 2013, Carter Schonwald wrote:
>
>  I'm looking at the scientific package, and I thought to myself "huh, it
>> doesn't seem to normalize the
>> numbers to scientific notation"
>> it has the right semantics for how printing and operations *mean*, but it
>> doesn't seem to internally keep
>> them as "normalized" floats.
>>
>
> The mantissa is stored as Integer. I think that is the only way to keep
> all digits. But with that representation it is certainly not sensible to
> normalize to the most significant digit. A reasonable normalization might
> be to divide the mantissa by a power of 10 such that the mantissa is not a
> multiple of 10.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-platform/attachments/20131127/950e875e/attachment.htm>


More information about the Haskell-platform mailing list