Calculator Demo

71 views
Skip to first unread message

EGM

unread,
Sep 20, 2017, 6:51:46 AM9/20/17
to DroidScript
I wanted a calculator that didn't depend on "eval", so I made one. Looking for comments, suggestions, criticism, etc. I still have a couple of changes / additions I want to make but it works as is.
ds-xcalc-demo.spk

Lee Tarry

unread,
Sep 28, 2017, 1:48:31 PM9/28/17
to DroidScript
hi,

I think the calc works great as it is, how did you manage to get the equation to carry on the next time you press + for example, i have a calc but i have been trying to figure that out for a while.

FenixyBr GT

unread,
Oct 8, 2018, 4:28:34 PM10/8/18
to DroidScript
If I put these two )( an error happens.

alex.symbroson

unread,
Oct 10, 2018, 12:28:35 PM10/10/18
to DroidScript
Great work!. You even did all the precedence and orientation thing. Impressive :)

@Lee Tarry Just execute the equation after pressing an operator (but add the operator after executing it - otherwise you might get errors)

alex.symbroson

unread,
Oct 10, 2018, 12:45:59 PM10/10/18
to DroidScript
one error I found: you can type any operator but '-' as first character but it should be the other way around.
And as FenixyBr GT said, when there is a '(' somewhere after an ')' without a match in the input you'll get an error after typing '(' and the app exits.

BareK

unread,
Oct 10, 2018, 12:58:56 PM10/10/18
to DroidScript
In posted some work around this issue:

Hope it'll help :)
Reply all
Reply to author
Forward
0 new messages