Posted 18 February 2014 - 07:43 PM
Hey, I'm new to the forums here but have recently taken an interest in computercraft. i started this program yesterday built around the direwolf20 button api (you can get here http://pastebin.com/HRbMF1Eg) i am basically working on a touch screen calculator to familiarize myself with lua (which I really think I have by the way :D/>) however the problem occurs when the division operation is chosen (i.e. player presses 1,2,/,8 in that order, and then it would come back 1 where it should come back something like 1.5. the weirdest part is that (i have two terminals, one for reference and the other for the program) on the reference terminal, lua has no problem handeling weird arangements of numbers while dividing within the lua test bed so i am so confused as to why its happening in my program.
you can download my code from http://pastebin.com/iUedYV3S
before you do, there are a few things you must know.
1. this is simply a proof of concept for me, it dosn't look great, it dosn't work perfectly (its also not finished lol)
2.i have spelling issues, i use double letters where they shouldn't be like the word opperation for example. please disregard typos (unless relevant of course)
and lastly, this program will only run properly on a 3x4 (3 wide, four tall) grid of advanced monitors using an advanced computer, its default, set to have the monitor placed above the computer
any help is appreciated, thanks~
you can download my code from http://pastebin.com/iUedYV3S
before you do, there are a few things you must know.
1. this is simply a proof of concept for me, it dosn't look great, it dosn't work perfectly (its also not finished lol)
2.i have spelling issues, i use double letters where they shouldn't be like the word opperation for example. please disregard typos (unless relevant of course)
and lastly, this program will only run properly on a 3x4 (3 wide, four tall) grid of advanced monitors using an advanced computer, its default, set to have the monitor placed above the computer
any help is appreciated, thanks~
Edited on 18 February 2014 - 07:11 PM