469,320 Members | 2,200 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,320 developers. It's quick & easy.

calculator program:

Does any1 know how to write a calculator program in perl which does the following?
add,subtract,multiply, divide , roots,gcd.
Some of the operations are integer only operation, such as mod, root and gcd , and some should work for both integers and floating point numbers, such as add and sub.
Oct 7 '06 #1
2 2292
eWish
971 Expert 512MB
First read perlop and learn about the various operators perl has to offer. Then search for a module at CPAN that will help with the more difficult tasks.

--Kevin
Nov 19 '07 #2
KevinADC
4,059 Expert 2GB
Does any1 know how to write a calculator program in perl which does the following?
add,subtract,multiply, divide , roots,gcd.
Some of the operations are integer only operation, such as mod, root and gcd , and some should work for both integers and floating point numbers, such as add and sub.
Is your question: "Does any1 know how to write a calculator program in perl which does the following?" ?

I would say the answer is : yes.
Nov 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Rafael | last post: by
3 posts views Thread by Paul | last post: by
14 posts views Thread by arnuld | last post: by
1 post views Thread by phjones | last post: by
1 post views Thread by Synapse | last post: by
1 post views Thread by gzeng | last post: by
Deathwing
5 posts views Thread by Deathwing | last post: by
8 posts views Thread by IgorZ | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.