Comments (1)
I'll add an option to remove whitespace, or maybe just make the existing -c
do that. Numbers are already printed as small as they can be - the rendered text is the shortest string which, after round-to-nearest-double, produces the original input.
So, integers are already printed as integers. If you divide 1 by 10, the internal double
is actually about
0.10000000000000000555
However, the string "0.1" is shorter and rounds to the same double value, so that's printed instead. (this isn't my code, go look at dtoa.c on netlib if you want wayyyyy too many details).
from jq.
Related Issues (20)
- Typo in the manual HOT 1
- try-catch + ascii_downcase fails in "catch" condition HOT 5
- Error suppression operator breaks function behaviour HOT 2
- Unrecognized HTML entity: `©` while running xq command HOT 1
- Setting non-existent elements of array slices uncovers hidden elements
- nan123 HOT 6
- Feature: Allow keys/array strings to be different color than object keys
- Modulo operator drops fractional part HOT 1
- `indices` behaves differently when dealing with arrays vs strings HOT 2
- Documentation Request: Include subsection links in documentation sidebar HOT 1
- Documentation Request: Include additional examples in the "Update assignment: |=" section HOT 2
- Stream delimiters in `fromstream`
- `make check` fails on `strftime` if the locale setting is not english. HOT 1
- Ignore comments when reading JSONs HOT 3
- I hate jq utility HOT 2
- Converting non-iso8601 datetime strings to epoch (mktime) format HOT 4
- Add mul/0 builtin filter folding arrays with * similar to add/0 for + HOT 3
- `jq` Installed Using x86_64 on Apple Silicon Using Mise HOT 3
- Hello, I just added jq into the x-cmd pkg HOT 1
- Escaped backspace at end of string does not remove last character HOT 3
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 jq.