#calculator #tui #expression #math #user-interface #terminal-interface

bin+lib qcalc

qcalc is a simple but effective terminal calculator for quick access and ease of use. It supports history of expressions, built-in functions and stored variables

31 releases (11 breaking)

0.15.2 Oct 31, 2024
0.14.4 Sep 10, 2024
0.14.3 Jun 28, 2024
0.9.0 Feb 3, 2024
0.1.3 Dec 31, 2023

#45 in Finance

Download history 237/week @ 2024-09-10 23/week @ 2024-09-17 43/week @ 2024-09-24 10/week @ 2024-10-01 4/week @ 2024-10-08 372/week @ 2024-10-29 3/week @ 2024-11-05

375 downloads per month

MIT license

115KB
3K SLoC

qcalc

qcalc is a simple and effective calculator with a terminal user interface. It serves to avoid having to open up a web browser, phone or desktop calculator application for those who work from the terminal

Usage

  • Install cargo (instructions here)
  • Install the binary cargo install qcalc
  • Run with qcalc
  • Enjoy!

Disclaimer of Warranty

The software is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

Features

  • Functions as types let pow = |a, b| a ** b map([1, 2, 3], |x| x ** 3)
  • Copy paste
  • Saves expressions which you can re-populate your input field with
  • Ability to save calculation results in variables
  • Built in functions
  • Resetting variables
  • Binary and hexadecimal inputs and bitwise operations eg. "0xff + 0b10 / 10", "0b1000001 ^ 0b100"
  • Tab completions

Feature requests / Bug reports

  • Feel free to open an issue and i'll look into it

Dependencies

~9–20MB
~294K SLoC