An RPN calculator written in C
C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.textile
posty.c
posty.h

README.textile

A simple Reverse Polish Notation, or postfix style calculator.

Usage:

posty [-v]
	-v	enable stack dumps (for debugging)

In interactive mode, you have two choices:

  • Enter a postfix style expression to be evaluated (supports +, -, /, *, ^, %)
  • Advanced functions: sqrt, sin, cos, tan, asin, acos, atan
  • Support for constants: pi and e
  • Enter :N to set decimal precision, where N is the number of digits displayed to the right of the decimal. Note that this can also be part of an expression.