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

Problems in the number formatting #8

Open
SanderDeWaal1992 opened this issue Mar 9, 2018 · 0 comments
Open

Problems in the number formatting #8

SanderDeWaal1992 opened this issue Mar 9, 2018 · 0 comments

Comments

@SanderDeWaal1992
Copy link

SanderDeWaal1992 commented Mar 9, 2018

While using this modules I noticed some problems in the results. I've listed them here;

  • There is always a 0 around the decimal point even when there shouldn't. For example:
    should give '.' for input 0 and format '.#' but gives '0.0'
    should give '. ' for input 0 and format '.?' but gives '0.0'
    should give '.0' for input 0 and format '.0' but gives '0.0'

  • should give '-01' for input -1 and format '00' but gives '-1'

  • It does not always behave well when the format is equal to '.'. For example:
    should give '-1.' for input -1 and format '.' but gives '.'
    should give '100.' for input 100 and format '.' but gives '.'

  • The scientific notation formats do not behave the same as in Excel. For example:
    should give '-.1E+1' for input -1 and format '.0E+0' but gives '-1.0E+0'
    should give '.45E+0' for input 0.45 and format '.00E+0' but gives '4.50E-1'

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