Skip to content

Studsministern/odin-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odin-calculator

A project for creating a calculator for The Odin Project Foundations course. The calculator is on a webpage, which is created using HTML, CSS and JavaScript. A live version can be viewed on GitHub pages.

 

features

The calculator supports addition +, subtraction -, multiplication x, division / and modulo %. It allows decimal numbers with the . button and switching positive/negative numbers with +/-. C clears everything and is a backspace button.

 

 

Features also include:

  • Display for the current/previous calculation. In the example above, the previous calculation is 16.7 x -53.268 =.
  • Chained calculations with operators. For example the input 12 + 7 - 5 * 3 = will give the result 42.
  • Repeat calculations by pressing =. For example 2 + 2 = 4. The next press of = will result in 4 + 2 = 6 etc.
  • Variable font size so large values or many decimal places doesn't overflow the display.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published