Skip to content
/ NiCalc Public
forked from simonkrauter/NiCalc

Simple calculator written in Nim using NiGui

Notifications You must be signed in to change notification settings

Lintfy/NiCalc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NiCalc

NiCalc is a simple calculator written in Nim using 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()
    • 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 - Quit

Screenshots

Download

History

  • 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 brackets

License

NiCalc is FLOSS (free and open-source software).
All files in this repository are licensed under the GNU General Public License version 3 (GPLv3).
Copyright 2017 Simon Krauter

About

Simple calculator written in Nim using NiGui

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Nim 100.0%