-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
1000 - 20% #494
Comments
that evaluates just fine in numbat, but not in the way you're probably expecting
i presume what you're thinking of would be more like this:
|
I see. Thank you for explaining how such a calculation can be done with numbat. |
Related discussions (in the predecessor project of Numbat):
It might be worth re-evaluating this. For one, in Numbat, we do not use Of course you can argue that this makes everyone happy. But I don't like the user experience. And adding configuration options always increases complexity of a software product and makes it harder to test. One thing we can definitely support is custom functions (and maybe even special syntax?) for those percentage computations. Something like:
In fact, you could add those two functions to your But of course, this approach suffers from a discoverability problem. How are users going to know about this feature? Edit: Well, thinking about this a bit more. We could partially solve that discoverability problem by emitting a useful error message if someone attempts to do something like |
@sharkdp Those two functions would be a good addition. I agree with almost everything on your post... Except that I think special syntax for those functions makes sense. What about the syntax below? These kind of calculations are common enough that, again, calculators such as Raycast, Numi and Soulver have special support for them in the form that I described in the first post. |
I added a first version of a percentage-calculation API in #609. Feedback is very much welcome. |
Can percentage expressions that work in calculators like Raycast and Numi, such as
1000 - 20%
work in Numbat?...That would be great. 😃 This is a really common use case.
The text was updated successfully, but these errors were encountered: