Show HN: I made a web-based notepad with a built in unit calculator (opens in a new tab)numpad.io
488 pointsHi HN
It also supports percentages, dates and variables.
I've been working on this alone for a few years now, so would love to get some feedback.
Comments (239) 97 threads
Show all comments
Showing thread 30 of 97
One bit of very minor feedback:
`x^y tonnes` errors 'exponent must be unitless'. The more expected (IMO) grouping `(x^y) tonnes` works, so why not have the non-error grouping be the implied one, when no parens given?
Getting operator precedence right has been pretty fraught tbh. For example "1km / 3 hours" is evaluated as "(1km) / (3 hours)", but "1 / 3 hours" is evaluated as "(1 / 3) hours", which is odd from a PL perspective, but I think it's more intuitive from a user perspective for this sort of thing.