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
> let a = 1 :: Scientific in [st|#{show $ 0.1 * a}|] <interactive>:74:32-50: Splicing expression quoteExp st "#{show $ 0.1 * a}" ======> (toStrict . toLazyText) (toText (show (((*) 0.1) a))) "0.1000000000000000055511151231257827021181583404541015625" > let a = 1 :: Scientific in (toStrict . toLazyText) (toText (show (((*) 0.1) a))) "0.1"
The text was updated successfully, but these errors were encountered:
> realToFrac (0.1 :: Double) :: Scientific 0.1000000000000000055511151231257827021181583404541015625
looks like Shakespeare's parser treats 0.1 as Double, not Rational like GHC does.
0.1
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: