Table of Contents
User Story #1:
In any order, I should be able to
dividea chain of numbers of
any length, and when I hit
=, the correct result should be shown.
User Story #2:
When inputting numbers, my calculator should not allow a number to
User Story #3:
decimalelement is clicked, a
.should append to the currently displayed value;
.in one number should not be accepted.
User Story #4:
I should be able to perform any operation (+, -, *, /) on numbers containing
User Story #5:
If 2 or more operators are entered consecutively, the operation performed should be the last operator entered (excluding the negative (-) sign). For example, if
5 + * 7 =is entered, the result should be
35(i.e. 5 * 7); if
5 * - 5 =is entered, the result should be
-25(i.e. 5 x (-5)).
User Story #6:
Pressing an operator immediately following
=should start a
new calculationthat operates on the result of the
User Story #7:
My calculator should have several decimal places of precision when it comes to rounding (note that there is no exact standard, but you should be able to handle calculations like
2 / 7with reasonable precision to at least 4 decimal places).
How to use it:
Clone this repo to your local machine using
Go inside the new folder that was cloned into
index.htmlwith your favourite browser
I would love your contribution at making this repo better and adding new features. To get started at contributing at this repo follow the steps below...
🍴Fork this repo!
👯Clone this repo to your local machine using
- HACK AWAY!
🔨 🔨 🔨
🔃Create a new pull request using