-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow math --scale=max
for maximum digits
#5579
Comments
I'm a little annoyed I forgot to report this and do it before fish 3.0.0. |
Do we want just "-1", or also -2, -3 and so on, which seems kinda useless? Or do we want |
Seems useless to me. The way I started doing it was just the special value of -1: floam@cbb7fcb
That might be a better experience for the user. |
+1 to |
math --scale -1
for maximum digitsmath --scale=max
for maximum digits
Fixed in ca5b7c0. |
Cool! |
math
should have an easier way of showing the maximum digits possible for floating point numbers than increasing-s
until you get an error (15 currently, which corresponds toFLT_DIG
. This could perhaps go up a little bit if we decided to uselong double
- I plan to do this to tinyexpr.cpp).The most straightforward thing would be just letting the user pass -1 for a scale that is limited only by precision.
The text was updated successfully, but these errors were encountered: