stcalc

Crates.iostcalc
lib.rsstcalc
version1.0.1
sourcesrc
created_at2023-05-12 14:44:02.579408
updated_at2024-05-22 01:52:32.372827
descriptionStack calculator.
homepagehttps://crates.io/crates/stcalc
repositoryhttps://github.com/cacilhas/microcli/tree/master/stcalc
max_upload_size
id863050
size10,044
Montegasppα ℭacilhας (cacilhas)

documentation

README

stcalc

Stack-based Calculator

Calculate stacking and unstacking values.

Installation

cargo install stcalc

Commands

  • Floating point numbers are pushed into the stack top
  • + unstack adding
  • - invert stack top signal
  • * unstack multiplying
  • / invert stack top
  • ! discard stack top
  • = show stack top as a number
  • . show stack top as a character

Example:

echo '33 100 108 3 24 55 32 3 7 29 72 . + . + . . + . ! . + . + . + . ! . ! . ! . .' | stcalc

License: BSD-3-Clause

Commit count: 230

cargo fmt