Page 2 of 2 [ 21 posts ]  Go to page Previous  1, 2


Have you wrote a calculator?
Yes 29%  29%  [ 14 ]
Yes 29%  29%  [ 14 ]
no 21%  21%  [ 10 ]
no 21%  21%  [ 10 ]
Total votes : 48

jmoney
Raven
Raven

User avatar

Joined: 25 Oct 2004
Age: 36
Gender: Male
Posts: 109

30 Oct 2004, 10:30 am

I wrote one in VisualBasic for computer class. It was just basic math, though.



Dan
Raven
Raven

User avatar

Joined: 7 Dec 2004
Gender: Male
Posts: 113
Location: College Station, TX

08 Dec 2004, 7:23 am

I did a command-line calculator in Fortran. And also in Python, but that doesn't really count because it's just a call to "eval".



Toukon
Butterfly
Butterfly

User avatar

Joined: 10 Dec 2004
Age: 42
Gender: Male
Posts: 9
Location: UK

12 Dec 2004, 12:55 pm

Yeah, I wrote a caculator - it fillled a void in my life just before I left school. It was a javascrpt versio of the windows scientific calclator and it eventuall ran to over 5000 lines. Yo coul change the background colours, nmbr base etc. It was a bit excessive but it was before I had any real world programming projects to do :D



Anna
Toucan
Toucan

User avatar

Joined: 10 Dec 2004
Age: 61
Gender: Female
Posts: 255

13 Dec 2004, 5:23 pm

Dan wrote:
I did a command-line calculator in Fortran. And also in Python, but that doesn't really count because it's just a call to "eval".


I love Python for that - it makes things so easy to do. You want something done - you just code it. It's easy enough to get things done with.



PeterMacKenzie
Veteran
Veteran

User avatar

Joined: 15 May 2005
Gender: Male
Posts: 626
Location: BANNED FOR DISCUSSING RECENT BANNINGS!

01 Jun 2005, 10:58 am

I just use IDLE for python as a calculator. You can type in anything at the command line and it'll spit back the answer (or an error). I find it much easier to be able to type 3*4 / (5.**3) and get 0.096000000000000002 back (which I can point a variable to to simplify further steps) rather than have to fiddle around with a calculator GUI. It does have it's quirks though, like the decimal point in the "(5.**" which is there to tell it to use floating point rather than integers (otherwise it returns '0' as the answer), but the quirks are really just an expression of how flexible it is.


_________________
Banned for discussing the recent spate of bannings.