2

Incorrect printing of some fractional

Hello!

On Haskell for Mac version 1.5.0 (1336 MAS) based on GHC 8.0.2

Start a new project, and add the following to your Main.hs:

    main = putStrLn $ show 368.0

 

Add this to your playground pane:

    main

 

Click on the button to show your console, and you will see in your console:

    3.0

 

Which is obviously incorrect! What's going on here?

6 comments

Please sign in to leave a comment.