Closed itchyny closed 2 years ago
Thank you for the PR!
Hmmmm, I was aware of this difference when I implemented it, and followed what isfinite
of C++ does. Though now I think returning true
for isinfinite
is also weird....
I'll merge this for now to match the behavior of jq, but might change in some future to make both isfinite
and isinfinite
return false
for NaN
.
I noticed that
xq -n "nan | isfinite"
printsfalse
but this is different from jq.