RosettaCodeData/Lang/Calc/00-LANG.txt
2026-04-30 12:34:36 -04:00

10 lines
No EOL
821 B
Text

{{language|Calc
|untyped=yes}}
{{language programming paradigm|stack-based}}
{{language programming paradigm|imperative}}
Calc is a stack-based RPN calculator inside [[Emacs]]. Calc is part of GNU Emacs 22, or a package for XEmacs.
Calc presents itself as an interactive calculator. Instructions can also be stored as macros, including control flow instructions (if-then-else, for loop, etc.), which makes Calc fully programmable. Calc also provides a library available in Emacs Lisp programs.
Calc has more numeric types than plain Emacs Lisp. Calc has big integers, big floating-point numbers, rational numbers, complex numbers, and more. (For contrast, plain Emacs Lisp can only handle integers and floating-point numbers of limited precision.) Emacs Lisp with Calc can solve tasks requiring these types of numbers.