Python Forum
a calculator command in python
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a calculator command in python
#1
a simple calculator command in python is rather easy to do. the eval() built-in function makes it nearly trivial. so what about one that does calculations like the decimal module does, but without requiring the expressions code any decimal functions (so a user can do: "calc 0.1+0.1+0.1-0.3" and get 0.0 or 0)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
a calculator command in python - by Skaperen - May-18-2018, 01:40 AM
RE: a calculator command in python - by wavic - May-18-2018, 04:10 AM
RE: a calculator command in python - by Skaperen - May-19-2018, 02:49 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020