Screwy Float values (Double fine, not rounding errors)
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.
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
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@haskell.org http://www.haskell.org/mailman/listinfo/iphone
participants (2)
-
Luke Iannini -
Murray Campbell