From 08c02120a4b14f1fe3073837f50910f5d9b9a68b Mon Sep 17 00:00:00 2001 From: Jay Barria Date: Thu, 24 Sep 2020 07:28:46 +0800 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0c835ab..9e0d9f3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -55,6 +62,7 @@ calculator.pressPlus() calculator.pressMinus() calculator.pressMultiply() calculator.pressDivide() +calculator.pressPercent() calculator.backSpace() calculator.pressEquals() ```