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
One of the nice things about gojq is that if x and y are integers,
then (x - (x % y)) / y will be properly evaluated and recognized as an
integer.
Now I realize jaq has a completely different approach to numbers, but
it would be extremely convenient if jaq allowed (x % y) if x and y are
both integers in the sense that (. == floor).
I'd love to understand this issue and implement it. Could you explain further?
From what I understand you want the modulus modulo operator to work for floats and integers?
One of the nice things about gojq is that if x and y are integers,
then
(x - (x % y)) / y
will be properly evaluated and recognized as aninteger.
Now I realize jaq has a completely different approach to numbers, but
it would be extremely convenient if jaq allowed (x % y) if x and y are
both integers in the sense that (. == floor).
At present, we find by contrast:
The text was updated successfully, but these errors were encountered: