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

compactInteger ignores scientific notation #98

Open
pmerienne opened this issue Jan 23, 2019 · 1 comment · May be fixed by #105
Open

compactInteger ignores scientific notation #98

pmerienne opened this issue Jan 23, 2019 · 1 comment · May be fixed by #105

Comments

@pmerienne
Copy link

Humanize.compactInteger(-2e-16)

  • Actual result: "-2"
  • Expected result: "0"
@ColmBhandal ColmBhandal linked a pull request Nov 1, 2023 that will close this issue
@ColmBhandal
Copy link

Since -2e-16 is not an integer, I would actually expect a failure. PR linked.

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

Successfully merging a pull request may close this issue.

2 participants