About Calc
Some information about this project.
This project is not to be taken seriously. If you need a calculator, then either get one for cheap, or check out [KESIMATE].
Calc exposes the host's shell arithmetic features as a calculator. Here are my ridiculous attempts to make it happen (with links to their screenshots):
The [first one] dates back to 2013. I was writing only batch scripts at the time, and my skills were infant. It stores up to eight lines of input, partially-calculates after each one, and saves their end result. The latter two are only to be printed with the help function (0). The reason for the input limitation is that each of its eight prompts and parses were scripted separately; there are eight copies of the same lines of command.
The [second one] surfaced over 61 months later. My skills have much matured by then. It lifted input limitations, moved partial calculations to the peek function, introduced basic memory functions and the option to prepend inputs to the expression. It was made from scratch for [EDENsh/dos].
The [third one] is a modification of the second. It introduced the ext (now fps) option that sets fractional precision for simple divisions like 1 / 9, because divisions are otherwise done integrally. The feature is simulated by multiplying the dividend by ten for each significant figure, alongside some string operations.
The [fourth one] is a spiritual successor separate from this project. Initially, it borrowed the above division technique for a couple of releases before it got its own. It has a different approach to arithmetic.
Calc is our oldest active project spanning over nine years.