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
Parsing a non-integer decimal number with more than about 16 digits will truncate the precision of the number to the what can be represented by a float64:
gojq currently supports arbitrary precision for integer values, including integer arithmetic operations. It would be great if it also supported arbitrary precision for non-integer decimal values for "passthrough" operations, and possibly arithmetic operations.
The text was updated successfully, but these errors were encountered:
@itchyny for clarity, that would solve the pass thru part but not doing operations?
For reference @matthewdale did a draft PR for decimal support in the fq fork wader#1 but i'm a bit reluctant to add more difference to upstream unless it can be done in a easy rebase-able and maintainable way
Parsing a non-integer decimal number with more than about 16 digits will truncate the precision of the number to the what can be represented by a
float64
:In comparison,
jq
will preserve all of the decimal precision for non-arithmetic operations (e.g..
andtojson
):gojq
currently supports arbitrary precision for integer values, including integer arithmetic operations. It would be great if it also supported arbitrary precision for non-integer decimal values for "passthrough" operations, and possibly arithmetic operations.The text was updated successfully, but these errors were encountered: