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

Wrong formatting for small numbers in SI mode #2

Closed
iustin opened this issue May 20, 2014 · 1 comment
Closed

Wrong formatting for small numbers in SI mode #2

iustin opened this issue May 20, 2014 · 1 comment
Assignees
Labels

Comments

@iustin
Copy link
Owner

iustin commented May 20, 2014

When formatting small (i.e. [1, 10)) in SI "all" mode, the numbers are formatted wrongly with 'deci' as base:

λ> formatValue (Left FormatSiAll) 1
(10,Just Deci)
λ> formatValue (Left FormatSiAll) 5
(50,Just Deci)

Both of these should be formatted without a unit (or, if issue #1 is implemented, with the base unit).

In binary mode or other SI modes, since only supraunitary units are used, things work OK.

@iustin iustin added the bug label May 20, 2014
@iustin iustin self-assigned this May 20, 2014
@iustin
Copy link
Owner Author

iustin commented May 20, 2014

/cc @copton

@iustin iustin closed this as completed in f61d4b0 May 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant