How do I male a calculator...

BlitzPlus Forums/BlitzPlus Programming/How do I male a calculator...

Paul A. B.(Posted 2004) [#1]
Hey, I was wondering if anyone could help me or give me some code for calculator(prefferably scientific, but it doesnt matter) that is just like a real calculator, and lets you just type in like "7+8x6/2"??? Its probably a really noobish question, but I dont know what to do! Thanks alot............


Rob Farley(Posted 2004) [#2]
Do you know the difference betweeen Male and Mail?

You want to code a calculator in blitz?

There's one that comes with windows.

What exactly are you trying to achieve?


maximo(Posted 2004) [#3]
His school assigment perhaps? ;)


CS_TBL(Posted 2004) [#4]
Maybe he wants a math-parser in blitz like the one I saw around here some weeks ago ..?


sswift(Posted 2004) [#5]
Thats' exactly what he wants and I'm sure there's one in the code archives.


Paul A. B.(Posted 2004) [#6]
Yeah, I know the difference between Male and Mail. Mail is somethingyou send, and mail is something you`re not ( Rob Farley). Just kidding. I just want a calculator because of a school project. Thanx


CS_TBL(Posted 2004) [#7]
o_O

3 options:
- use the Windows-one ..
- go to a shop and get a full-blown Texas Instruments calculator
- use 'Print'

still I feel no-one gets the point here :)


sswift(Posted 2004) [#8]
Here are somefunctions I found in the code archives to do it. Don't ask me how to use them because I don't know. :-)

http://www.blitzbasic.com/codearcs/codearcs.php?code=390

http://www.blitzbasic.com/codearcs/codearcs.php?code=931


rdodson41(Posted 2004) [#9]
Maybe he wants a math-parser in blitz like the one I saw around here some weeks ago ..?


[url]http://www.blitzbasic.co.nz/Community/posts.php?topic=38264#428330[/url]

If you realy need it i made a RPN calculator, you would have to make a parser to turn the 7+8x6/2 into RPN syntax, tell me if you want me to post it.