Page 2 of 2

Re: Calculator

PostPosted: Wed Dec 19, 2007 8:19 am
by Kalladdolf
yeah, this is just very simple.
you could also add some variables and make them recieve the first two textNumbers.

Re: Calculator

PostPosted: Wed Dec 19, 2007 9:18 pm
by Troodon
Fuzzy wrote:
==Kalladdolf== wrote:
Code: Select all
txb3.textNumber = txb1.textNumber + txb2.textNumber;


Although it certainly works, for a serious application I would not suggest using textNumber for things like this. Use properly named global variables.


Unless you use it just for temporary calculations. But if you want to modify/edit/save/load or anything like that you should use the variables like Pete said. Hey, I spotted your sig! :lol: It's just so difficult to call you Fuzzy when you have the same avatar. (You also used to have another avatar before your current one 8) ) Imagine if I would change my name to "Duke of Wellington" or if Makslane would become "MC Megabyte". :lol:

Re: Calculator

PostPosted: Wed Dec 26, 2007 6:15 pm
by Sgt. Sparky
Bee-Ant wrote:Yeah...basic calculator is so easy...but, how about scientific calculator???Which use :
sin, cos, tan, inv, hyp, rand, etc...

I will make a calculator right now, I should have it done soon. (It will have all the basics and maybe more.)

Re: Calculator

PostPosted: Thu Dec 27, 2007 12:13 am
by Sgt. Sparky
Here is a simple calculator.
Here is how you use it:
Use the number keys above the letters to type out the numbers, period is a decimal place.
Use this just like you would a normal calculator.
:D
If anybody wants I can post the source.

Note: No sprites involved.
The background is canvas rendered.

:D :D :D

Re: Calculator

PostPosted: Thu Dec 27, 2007 5:21 pm
by Kalladdolf
Cool, I tell ya :D

Re: Calculator

PostPosted: Fri Dec 28, 2007 8:24 am
by Bee-Ant
...
cool

Re: Calculator

PostPosted: Sat Dec 29, 2007 3:21 am
by pyrometal
Just to let you know, I'll be building a scientific calculator and I will post it here soon!

-- Pyro

Re: Calculator

PostPosted: Sat Dec 29, 2007 3:40 am
by Bee-Ant
OK...I'll wait

Re: Calculator

PostPosted: Sat Dec 29, 2007 2:09 pm
by Zehper48
thanks for the demo Sgt. Sparky!
it helped me!
ohhh, ill be impressed if sombody makes a scientific calculator!

Re: Calculator

PostPosted: Sat Dec 29, 2007 9:55 pm
by Sgt. Sparky
Zehper48 wrote:thanks for the demo Sgt. Sparky!
it helped me!
ohhh, ill be impressed if sombody makes a scientific calculator!

Somebody could just use my calculator as a base and add extra buttons for scientific functions. (Ge has a few scientific functions.)

Re: Calculator

PostPosted: Mon Dec 31, 2007 12:47 am
by pyrometal
Well here's the basis file with most functions for scientific calculators. I got really bored of this project so I didn't do the most thorough job, but you can still appreciate it I guess. Feel free to build on this base file as you please.

Just to let you know, there are 8 inputs, A to H, but only A and B are in use. The intent was to have them for more complex functions such as scalar and vector products of vectors among other things... But I really don't feel like it, I have to keep working on my other projects.

GE Calculator.zip
Feel free to expand and modify.
(43.63 KiB) Downloaded 106 times

Re: Calculator

PostPosted: Sat Jan 05, 2008 1:35 am
by pyrometal
Well, it looks like this calculator of mine received no attention at all... Sorry for bumping but I though it was justified given that I don't like to work for no reason! lol

Re: Calculator

PostPosted: Sat Jan 05, 2008 8:41 am
by Bee-Ant
Nice job!pyro :D

Re: Calculator

PostPosted: Sun Jan 06, 2008 4:23 am
by pyrometal
Thanks! Always glad to help out!