Comments (3)
When saying "the paragraph about division by 0", are you talking about the following?
In jaq,
n / 0
yieldsnan
ifn == 0
,infinite
ifn > 0
, and-infinite
ifn < 0
.
I do not see how it is outdated, because I just tried this:
$ jaq -n '0 / 0 | isnan'
true
$ jaq -n '1 / 0 | isinfinite'
true
$ jaq -n '(-1) / 0 | isinfinite'
true
Note also that jq's current (1.6) behavior is dependent on whether the numerator is a literal 0 or a variable equal to 0.
Oh god. Do you have any idea how to describe this behaviour in the README in a concise way?
from jaq.
I was referring to the sentence:
"In jq, n / 0 yields nan (not a number) if n == 0 and fails otherwise"
Perhaps it would suffice to write:
Using jq, the behavior of expressions involving division by 0 varies by version.
If you want to describe jq 1.6, you could point out:
In jq 1.6, '(0/0) | isnan' yields true, but other expressions involving division by 0 yield errors.
from jaq.
Thank you @pkoppstein for pointing out this issue. I tried to document the jq behaviour in d6c3445.
from jaq.
Related Issues (20)
- Parsing zero-padded numbers HOT 6
- Using JAQ with a custom type HOT 12
- Build failure for v1.3.0 on macos & linux, but building from latest main (1699a7d1fc7ede) works HOT 5
- Problem on console without support of color. HOT 7
- Build failure on 1.80 nightly and Windows HOT 3
- `--argjson` not supported HOT 5
- jaq for Apple Silicon HOT 2
- Bug using | more HOT 6
- Compile error on Windows HOT 6
- Consider creating easy-to-use library version/crate HOT 3
- Feature request: NO_COLOR standard implementation HOT 1
- Different behavior with 'add' filter HOT 3
- [bug] `map_values(@base64d)` results in `undefined filter` HOT 3
- Invalid link in README.md HOT 4
- `halt` and `halt_error` filters HOT 2
- JSON with Comments (jsonc) support HOT 12
- rustc 1.80 fails building --locked from crates.io HOT 4
- Why `ParseCtx.compile` doesn't return a Result? HOT 1
- jaq ignores multiline (`m`) flag in regex operations HOT 4
- reminder re add/1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaq.