WebCalc - styled WEB digit calculator.
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 |
x² - 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
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:
- 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);