5 ms·
This looks extremely useful, even though currently makes quite a few mistakes, as noted by others. A few features that could be nice: 1) It handles 1 000 000 *
by krick 5y ago
This looks extremely useful, even though currently makes quite a few mistakes, as noted by others. A few features that could be nice:
1) It handles 1 000 000 * 3 just fine, but returns 3000000. So it would be nice if it would format output as 3 000 000 as well for readability. At least as an optional setting (even though I have no idea why someone wouldn't want that).
2) Some way of referencing last result. Often you need to perform operations step by step, when, say, estimating something. So either 10 \n + 20 \n * 3 ..., or just referencing last output like some special variable. I though I could do it more verbosely by just x = 10; x = x + 20 ..., but that gives "Variable references itself."
3) Not sure about this one, since this is not something natural at all, and I don't know what to propose to make it natural (at least without proposing map/filter/reduce and some sort of multi-line inputs). Neither is it a real problem, but it's just something I probably use a calculator most often: simply adding up a dozen of numbers, copied from somewhere as a column. So currently I must first open vim, convert it to and expression bc will handle ( 15 + 21 + 32 ...), and then paste in to bc. With kalk it would be similar. Would be great if one could skip that step since this (I assume) would be a common use-case. But, yeah, I don't have an actual suggestion on how to naturally address that.
- paddim8 5y agoThese are some great suggestions! I should absolutely make it add spaces, can't believe I didn't think of that. Also, it actually does have a way to reference the last result, I forgot to document it. It's a variable called "ans"! The last thing, yeah, that would be neat. I'll think about it...
- psyklic 5y agoThis is a really great calculator, will definitely be using it! FYI I noticed there is a very similar product with the same name: https://kalk.dev/ https://kalk.dev/
- psyklic 5y agoAlso I noticed it crashes if you write ceil<TAB> then erase the right-most ceil symbol!
- paddim8 5y agoYeah the name isn't very good. This wasn't actually supposed to become something, it was a quick thing I made when I was bored, that suddenly expanded into all this, haha. I like being able to type `kalk` in the terminal, but maybe something needs to be added to the name to make it more recognisable.
- StavrosK 5y ago> At least as an optional setting (even though I have no idea why someone wouldn't want that). Copy/pasting? At least each three zeroes could alternate in color, to make it easier to paste the numbers elsewhere.