-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adaptive number of significant digits #54
Comments
Also, |
And also having the possibility to change the number of significant digits during a session could be a very useful feature (it is for me...)! |
@sharkdp Stupid question: Why shouldn't Insect output all digits. Then the user can decide how many digits he wants to use ^^ |
Also: I guess many people would like to use insect as a replacement for |
I agree the current behaviour is very confusing. There's even a difference between big and small integers:
I think a more usable default would be to display six (or even eight) digits after the dot. It can be still made configurable later on. Otherwise at least use scientific notation when showing numbers bigger than 1e6 (now it does from 1e20 on, which seems a reasonable default). @ad-si note that calc is an arbitrary precision calculator, while insect is just high precision. |
Yes. This ticket describes my personal top-prio issue with Insect.
We could try this. I don't really like the fact that we would display far too many digits for most computations though. |
I just want to confirm how important it is for some application to display >6 digits. Is there a way around it for now? I want to do 123456789/33 but need at least 15 significant digits. |
@sharkdp I think this could be nice to implement in v5.9.0, but the major initial hurdle would be how to add it cleanly to |
I have not thought about it in detail, but I'm quite sure it's a highly nontrivial thing to do. |
@sharkdp alright then, let's leave it for later (or never?) then. |
Follow-up ticket for Numbat: sharkdp/numbat#179 |
Adaptively increase the number of significant digits if the user input seems to require it:
Also, the different handling of integers and floating point numbers seems strange right now:
The text was updated successfully, but these errors were encountered: