[Haskell-iPhone] Screwy Float values (Double fine, not rounding errors)

Luke Iannini lukexipd at gmail.com
Mon Jul 14 01:23:00 UTC 2014


Hi Murray,

I guess I'm using Doubles in my project so I hadn't seen this -- I'll give
it a try as soon as I can!

I assume you saw it already but I had some luck getting past illegal
instruction: 4 as semi-chronicled in here
https://github.com/ghc-ios/ghc-ios-scripts/issues/4

Best
Luke


On Sun, Jul 13, 2014 at 5:24 PM, Murray Campbell <murray at sonology.net>
wrote:

> Hi all,
>
> I've been noticing some strange Float behaviour (not rounding errors
> but totally erroneous values for non-pathological values).
>
> It seems to be a manifestation of GHC ticket #9125 which was reported
> from a Raspberry Pi (arm) version.
>
> A quick example:
>
> > print (29.0 :: Float)
>
> gives
>
> > 2109.0
>
> There is more detail at
> https://ghc.haskell.org/trac/ghc/ticket/9125#comment:1
>
> Has anyone else seen this?  I'm running a compiled-from-source-tarball
> 7.8.3 as I couldn't get past the dreaded 'illegal instruction:4'
> binary installation bug.  Simulator and device behave the same.
>
> Thanks.
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20140713/d8712963/attachment.html>


More information about the iPhone mailing list