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

export wrong large long value #1248

Closed
rocwenlinux opened this issue Oct 4, 2016 · 1 comment
Closed

export wrong large long value #1248

rocwenlinux opened this issue Oct 4, 2016 · 1 comment
Labels

Comments

@rocwenlinux
Copy link

./jq-linux64 --version
jq-1.5

./jq-linux64 -c '([.bignumber]) | @csv' inputfile.txt > outputfile.csv

inputfile.txt
{"bignumber":11012340123456789}{"bignumber":10456781234567891}

output:
11012340123456788
10456781234567892

Summary:
the last digit in the large value of long is changed. conversion is not accurate.

@itchyny itchyny added the ieee754 label Jun 3, 2023
@itchyny
Copy link
Contributor

itchyny commented Jun 3, 2023

This is already fixed in the master version (implemented by #1752 in Oct, 2019).

@itchyny itchyny closed this as completed Jun 3, 2023
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

2 participants