We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read
This program prints "1.5":
main = alert (show (read "1.2" :: Float))
(Same if I use Double.)
Double
It seems to only affect certain numbers with an even decimal. This program
main = alert $ show $ [ read (show n) :: Float | n <- [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7] ]
prints
[1.0, 1.1, 1.5, 1.3, 1.75, 1.5, 2.0, 1.7]
The text was updated successfully, but these errors were encountered:
abcd93c
No branches or pull requests
This program prints "1.5":
(Same if I use
Double
.)It seems to only affect certain numbers with an even decimal. This program
prints
The text was updated successfully, but these errors were encountered: