#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

#48 in Finance

Download history 170/week @ 2024-09-07 81/week @ 2024-09-14 43/week @ 2024-09-21 17/week @ 2024-09-28 5/week @ 2024-10-05 1/week @ 2024-10-12 331/week @ 2024-10-26 44/week @ 2024-11-02 3/week @ 2024-11-16

134 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

~7–18MB
~262K SLoC