Skip to content

This calculator has addition, subtraction, multiplication, division, and exponents, so it's a simple but effective calculator. Do not enter fractional values; convert those to decimals first via the calculator using division.

Notifications You must be signed in to change notification settings

Pyrodox/Simple_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Simple_Calculator- Calculator.py is the main file

Make sure to create an init.py file for the Restart_Function module.

The calculator unfortunately does not take fraction values so try to convert your fractions into decimals before using the calculator. (You could also convert the fractions to decimals through the simple calculator.)

The calculator takes two numbers, with an operator as well. (+, -, *, /, or ^)

This calculator can also process negative numbers.

https://www.tutorialspoint.com/basic-calculator-program-using-java I got the idea from this website. I actually barely looked at the tutorial and just got the idea of the simple calculator off it.

Changes made:

  1. Used an if/else function instead
  2. Originally I coded it in Java, converted it to Python by learning if/else
  3. Learnt functions and exceptions so I modded my old calculator to use those
  4. Another if else operator added
  5. Added parameters in my function
  6. Added module
  7. Added class
  8. Added while loops, user can restart
  9. Added try except but implementing while loops
  10. Added more functions

About

This calculator has addition, subtraction, multiplication, division, and exponents, so it's a simple but effective calculator. Do not enter fractional values; convert those to decimals first via the calculator using division.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages