Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xfl03/simplecalculator
Simple Calculator in Kotlin
https://github.com/xfl03/simplecalculator
Last synced: 21 days ago
JSON representation
Simple Calculator in Kotlin
- Host: GitHub
- URL: https://github.com/xfl03/simplecalculator
- Owner: xfl03
- License: mit
- Created: 2018-04-04T09:28:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T12:12:37.000Z (over 6 years ago)
- Last Synced: 2023-08-28T08:22:12.639Z (over 1 year ago)
- Language: Kotlin
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleCalculator
[![CircleCI](https://circleci.com/gh/xfl03/SimpleCalculator/tree/master.svg?style=svg)](https://circleci.com/gh/xfl03/SimpleCalculator/tree/master)
Simple Calculator in Kotlin
## Feature
- Support BigInteger & BigDecimal
- Support Elementary arithmetic & Bracket
- Support Integer only mode
- Could auto fix right bracket
- Show reason and position for syntax error
- Print out fraction & decimal
- Print mixed fraction if needed## Technology Stack
- Kotlin (JVM)
- JUnit 5
- Gradle 4
- CircleCI 2## Build
````
.\gradlew clean build
````## Run
````
java -jar .\build\libs\SimpleCalculator-1.1-SNAPSHOT.jar -m
````
### Argument
`-d` `--debug` DebugMode
`-f` `--fix` Auto Fix Right Bracket in the end
`-m` `--mixed` Use Mixed Fraction
`-i` `--int` Integer Only
`-nd` `--no-dec` No decimal out print