Skip to content
New issue

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

Display of float values in husk #197

Open
justinethier opened this issue Oct 24, 2014 · 0 comments
Open

Display of float values in husk #197

justinethier opened this issue Oct 24, 2014 · 0 comments

Comments

@justinethier
Copy link
Owner

From Rohan Drape. TBD if this change will be made in Husk, but it is worth considering:

i'm wondering how to work around ghc's (i think infuriating)
decisions about when to "show" floats in scientific notation.

ie. "showing" a LispVal that has Float nodes will print 5.0e-2 instead
of the (i think more readable) 0.05.
S.Float x -> Numeric.showFFloat Nothing x ""

ps. there was a haskell-cafe thread about this but it ended at:

http://www.haskell.org/pipermail/haskell-cafe/2013-November/111318.html


i've made a variant of 'showVal' that works:

  S.Float x -> Numeric.showFFloat Nothing x ""
@justinethier justinethier changed the title Representation of floats in husk Display of float values in husk Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant