Live data from Hacker News

Show HN: I made a web-based notepad with a built in unit calculator

numpad.io

41–50 of 246 posts

Re: Show HN: I made a web-based notepad with a built in unit calculator

#45

There is something wrong with the order of operations. When I type 2+2*2-6 i get -6 which should be 0.

Oh there's more:

9 - 3 ^ 2 = 0

9 -3 ^ 2 = 18 ???

pi = 3.1415926536

2 pi = 5.1415926536 ???

sin(3.1415926536 radians) = -0

sin(pi radians) = Incompatible units ???

Re: Show HN: I made a web-based notepad with a built in unit calculator

#46
post #36

This is awesome! Some feature requests: it would be great though if you could have multiple sessions/tabs in stead of 1. Also a clear button would be nice.

Can’t you just select all then hit backspace? Asking for a friend...

Re: Show HN: I made a web-based notepad with a built in unit calculator

#47
post #45

There is something wrong with the order of operations. When I type 2+2*2-6 i get -6 which should be 0.

Oh there's more: 9 - 3 ^ 2 = 0 9 -3 ^ 2 = 18 ??? pi = 3.1415926536 2 pi = 5.1415926536 ??? sin(3.1415926536 radians) = -0 sin(pi radians) = Incompatible units ???

Seems to assume + if an arithmetic operator is missing?

Re: Show HN: I made a web-based notepad with a built in unit calculator

#48
This is great, I use `bc` a lot at work (particularly when away from desk and my actual calculator) but I'll probably bookmark this to use instead.

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?

Re: Show HN: I made a web-based notepad with a built in unit calculator

#50

THIS IS AMAZING. the next step is adding variables and assignments and conditionals, and you have something very powerful that can be used by just about anybody to do really interesting things. provided you have a way to integrate with other services that a lot of people use

Variables and assignments are already supported.
Post reply on HN