You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously, it's easy enough to work around this (using sed to remove quotes instead, or awk to print with trailing zeroes), but it requires a non-jq solution.
The text was updated successfully, but these errors were encountered:
The idea of retaining and using the original representation when possible has been made, but as best I can tell, is unlikely to be incorporated into jq in the foreseeable future. More likely, perhaps, is better control of output formatting -- see #1363
In the meantime, please note that jq's string-handling capabilities can often be used to overcome jq's number-handling limitations, depending of course on the specific circumstances.
It's debatable whether or not this is a bug, but I'd expect the input string and the output number to be the same:
Obviously, it's easy enough to work around this (using
sed
to remove quotes instead, orawk
to print with trailing zeroes), but it requires a non-jq
solution.The text was updated successfully, but these errors were encountered: