Skip to content

EgoRomanoff/web-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


html javascript  sass-scss

Content

  1. Demo
  2. Features
  3. Realizing
  4. Difficulties

Demo

WebCalc

WebCalc - styled WEB digit calculator.

Features

This web application has the basic functionality of a standard calculator:

Basic binary Advanced unary For inputting values
+ - addition ! - factorial C - clear
- - subtraction % - calculating 1% of the number - backspace
* - multiplication - the square +/- - changing the sign
/ - division - the square root = - output of the result (equal)
. - input decimal separator (point)

The user can enter numbers sequentially - after each operation it is not required to press =

The application takes into account the sequence of operations.
This means that sequential input 2 + 2 * 2 will return the result 8 and not 6 - operation * will be applied to the sum of 2 + 2

WebCalc (sequence of operations)

Realizing

My main goal - to try to create a full-fledged application without using frameworks.
Also I wanted to realize modern design - here I decided to use neomorphism and smooth shadows.

During the creation of this application, I mastered:

Difficulties

Known bugs:

  • incorrect display of % and +/- operation;
  • incorrect display of overflowing result string and expression string;
  • incorrect display of floating numbers with zero in the integer part;
  • no rounding of floating number (JavaScript specifics);