Skip to content

Benjamin-Re/calculate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

calculate

Live preview: https://benjamin-re.github.io/calculate/

Calculates basic math operations

  • add
  • subtract
  • multiply
  • divide

The function operate takes an operator and two numbers and calls the appropriate function of the above.

The UI consists of numbers from 0-9, the operators +-*/, a display, an equal, decimal, a clear button, and delete button

789+ 456- 123* 0.D/ C =

Number values and operators pressed are saved. When a combination of num op num is present the = is activated and calls calculation.

Repeated press of operator functions as equals if a and b are saved.

Keyboard is supported.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published