Skip to content

higgsboson909/mini-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mini-calculator

THE ODIN PROJECT

// objective -- never use eval -- build your own functions to evaluate expressions

// expectations -- add sub mul div -- num, oper, num -- use variables for these threes' -- operate(oper, num1, num2) -- create numInput for operations -- operate() when = is pressed - update the display with result - store values is hard part -- watch for bugs - evaluate single pair at a time - round off your answers with long decimals - = before entering all numbers can cause problems - clear should wipe all the data - n / 0 should give error message