- #Console calculator how to#
- #Console calculator code#
- #Console calculator download#
- #Console calculator free#
This package shall prove to be a powerful package in satisfy all requirements of the user. Several user friendly coding have also adopted.
#Console calculator code#
The ExpressionCalculator class has alternative method which returns true if compilation of the source code is successful,
mca ("memory clear all"): set the values of all the cells to 0.
mr or mr# ("memory recall"): recall the value from #-th cell.mc or mc# ("memory clear"): set the value of #-th cell to 0.m- or m-#: substract the subtotal from the value of #-th cell.Please note that if the index hasn't been specified explicitly, it would be considered 1 automatically, so commands m+ and m+1 are identical. m+ or m+# (where # is the index of the certain cell: ): add the current subtotal to the value of #-th cell.Here's the more detailed list of the commands: This calculator supports a number of memory cells, up to 20 cells exactly. Such the syntax has no parentheses support (so there's no correct order of arithmetic operations), besides, it sometimes shows a weird behavior. But this is not a designed feature but only a side effect. However, let's mention that the synthax like 1 + 2 * 3 / 2 (all in one line) is allowable technically. The program also ignores input which's meaningless in the given context but this is not very exciting to see the examples of such a behavior. Please:ġ) enter different number to finish this expression, orĢ) enter operator to make different expression with subtotal shown above.
This feature also provides safety for calculations considering mathematically incorrect results, like in the following example (click to expand). The following example is (4 + 2) ^ 2 expression: Input:
#Console calculator free#
This calculator is able to save the subtotal, so if you've misspelled while entering a value, feel free to overwrite it.
#Console calculator how to#
commands such as = (get the subtotal value), quit (close the program), c (reset all the calculations), and operations with the memory of the calculator: m+, m-, mc, mr, mca (i.e., "memory clear all" - see details below), mpa ("memory print all") there's a separate chapter there describing how to use all these memory commands.square root r (there's it's kinda a postfix operator here which returns the square root of the subtotal value).
#Console calculator download#
To do so, download directories bin and doc and place them side by side.