Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonkrauter/nicalc
Simple calculator written in Nim using NiGui
https://github.com/simonkrauter/nicalc
calculator nigui nim
Last synced: 21 days ago
JSON representation
Simple calculator written in Nim using NiGui
- Host: GitHub
- URL: https://github.com/simonkrauter/nicalc
- Owner: simonkrauter
- Created: 2017-07-02T15:31:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T10:26:49.000Z (over 3 years ago)
- Last Synced: 2023-02-26T08:56:53.499Z (over 1 year ago)
- Topics: calculator, nigui, nim
- Language: Nim
- Size: 41 KB
- Stars: 45
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
NiCalc
======NiCalc is a simple calculator written in [Nim](https://nim-lang.org/) using [NiGui](https://github.com/trustable-code/NiGui).
Supported elements
------------------The input term may consist of:
* Rational numbers
* Decimal point: `.`
* Digit grouping: `,`, `_`
* Arithmetic operators: `+`, `-`, `*`, `/`, `^` (power)
* Brackets: `(`, `)`
* Functions:
* `abs()`
* `ceil()`
* `cos()`
* `floor()`
* `ln()`
* `log2()`
* `round()`
* `sin()`
* `sqrt()`
* `tan()`* Constants:
* `pi`
* `e`Example:
Input: `(2^16+2*3-sin(pi))/2`
Result: `32,771`Keyboard commands
-----------------* Return - Add calculation to history
* Escape - QuitScreenshots
-----------Download
--------* [Binary downloads for Windows and Linux](https://github.com/trustable-code/NiCalc/releases)
* macOS users can try the Gtk version or wait for native macOS supportHistory
-------* Version 1.0 (2017-07-02) - First release
* Version 1.1 (2017-08-09) - Fixed handling of brackets, added "abs()" function
* Version 1.2 (2018-01-02) - Fixed handling of bracketsLicense
-------NiCalc is FLOSS (free/libre and open-source software).
All files in this repository are licensed under the [GNU General Public License version 3](https://opensource.org/licenses/GPL-3.0) (GPLv3).
Copyright 2017-2020 Simon Krauter