Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jairrab authored Sep 23, 2020
1 parent 87c0b52 commit 08c0212
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ dependencies {
implementation 'com.github.jairrab:KotlinCalculator:2.2.0'
}
```
## Features
* Ready to plugin to your existing UI, just wire your event listeners to the provided interface control methods
* Supports both MDAS (Multiply/Divide/Add/Subtract) and non-MDAS operations
* You can initialize the calculator with a pre-defined double number
* Supports percent operation
* Supports running equation display
* Supports continous running equations
## Usage
To get an instance of the `Calculator` library, call `Calculator.getInstance()` and pass a listener to receive calculator updates.
```kotlin
Expand Down Expand Up @@ -55,6 +62,7 @@ calculator.pressPlus()
calculator.pressMinus()
calculator.pressMultiply()
calculator.pressDivide()
calculator.pressPercent()
calculator.backSpace()
calculator.pressEquals()
```
Expand Down

0 comments on commit 08c0212

Please sign in to comment.