Mar 1, 2017 08:25 PM
(This post was last modified: Mar 1, 2017 08:26 PM by Lucasheer.)
I wanted to post something on this website, and this is just something I made awhile back. You pass an equation to it as a string (ex: "5+-5*3-(2+2*(-422+2)*5)-51/-2", and it returns 4213.5 😉
image :
htt p://i.imgur.co m/z0wbGTT.png
code :
htt p://pastebin.co m/4v11L7AH
It is perfectly accurate, however, it is kinda inefficient. I was 15 when I coded this, well still 15, but ill be 16 tomorrow! So my birthday revolution is making more efficient code 😁
Its original purpose was for project that takes scratch.mit games/applications, and converts them into .jar and .apk executables. However, Java has string equation solving, and its a ton faster 🤣 If I had to do this again, I'd probably tackle it with a token system method, much like RPM calculators, instead of parsing strings.
Have fun with the code though, and skype me at LucasHeer715, if you need any help.
Sorry it wouldn't let me post picture or code, because of my amount of posts :'(
image :
htt p://i.imgur.co m/z0wbGTT.png
code :
htt p://pastebin.co m/4v11L7AH
It is perfectly accurate, however, it is kinda inefficient. I was 15 when I coded this, well still 15, but ill be 16 tomorrow! So my birthday revolution is making more efficient code 😁
Its original purpose was for project that takes scratch.mit games/applications, and converts them into .jar and .apk executables. However, Java has string equation solving, and its a ton faster 🤣 If I had to do this again, I'd probably tackle it with a token system method, much like RPM calculators, instead of parsing strings.
Have fun with the code though, and skype me at LucasHeer715, if you need any help.
Sorry it wouldn't let me post picture or code, because of my amount of posts :'(


![[Image: z0wbGTT.png]](https://i.imgur.com/z0wbGTT.png)