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

Stripping of last digit in number #323

Open
gavindsouza opened this issue Sep 9, 2024 · 3 comments
Open

Stripping of last digit in number #323

gavindsouza opened this issue Sep 9, 2024 · 3 comments

Comments

@gavindsouza
Copy link

Noticed something odd while using fx (v34.0.0, nixos-24.05) along with gh api graphql. I proceeded to build the latest source (v35.0.0) and tried it again but got the same results. I changed the totalCount numeric value and the result was always the first N-1 digits

A simplified snipped of usage:

% echo '{                                                                                                                                                 24-09-09 - 15:02:21
  "data": {
    "repository": {
      "stargazers": {
        "totalCount": 69670
      }
    }
  }
}' | fx .data.repository.stargazers.totalCount
6967
@antonmedv
Copy link
Owner

Strange, works for me:
image

@gavindsouza
Copy link
Author

Hmmm, I tried this on my Ubuntu 24.04 server with the fx snap and it worked fine too.

nixos

Is there anything obvious that I'm missing?

@antonmedv
Copy link
Owner

Prompt?

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

2 participants