New version of CALCD.G4B ready.
CALCD.G4B v0.2.1 (20221211)
Output Echood, if exists: in variables 'result' 'MR' 'R' 'resrnd' and 'message'
Prefix Functions: SUM PRODUCT MEAN VARP VARS STDEVP STDEVS FACT Pnr Cnr "==" ">=" "<=" COUNT
MIN MAX COUNTIF
Use CALCD.G4B [switch] function number1 [number2]|number1 number2|args
Infix Operators: + - * / ^ Functions: ROUND DECI DIGI FIX
Use CALCD.G4B [switch] number1 operator|function number2|NUMBER
Postfix Functions: INV SQRT SQ CBRT CB HEX THSEP
Use CALCD.G4B [switch] number function
Memory Functions: M M+ M- RM Clear: MC Placeholders for number: MR R
Numbers ± 10exp-18 - 2exp63-1, 0!-20!, MR, R (integers hex too, decimals: dot)
Help CALCD.G4B help|--help|/? [function|operator|mem|ver]
BTW After fatal errors text above is showed always - if you do not like it (anymore) use remarked-out line 89 instead of line 88 (and disable line 88)
New in v0.2.1
Bugfixes (especially in Cubic Root)
Cubic Root (CBRT) gives 18 decimals now (but not rounded!)
Function CRT renamed to CBRT
Function FAC renamed to FACT
Simpler handling of multiple calculations on command-line:
- Continue/ restart calculation with \\ only needed after COUNT
- Functions INV, SQRT and M cannot be used before there argument anymore
- Function CBRT must now be used after argument
- Single number on command-line allowed (including MR, R and 0!-20!)
Help has been rewritten, about 250 examples
New functions:
HEX: convert number/ result to hexa-decimal number (rounddown!)
THSEP: adds thousands-comma-separator to last number/ result (input with thousands-comma's allowed too)
SQ: Square of number
CB: Cubic of number
MIN: lowest number on command-line/ (md)
MAX: highest number on command-line/ (md)
COUNTIF: count of numbers on command-line/ (md) 'satisfying' if-condition
New switch: /Q for quiet operation
Display of 'smallhelp' after (syntax-)error
I hope new terminoloqy of function-types 'prefix', 'infix' and 'postfix' with placement of their arguments is helpful.
I found 'Post-op' is used in cases like '2!', the '!' is post-operator.
BTW: I'd like to thank steve6375 for his suggestions, although some Function names will not be altered.
Also I'd like to thank our professor of Cambridge-English who helped with my abbreviation of Thousand Separator (THSEP). We didn't found any existing abbreviation.
Some 'action' print-screens of new functionality in CALCD.G4B v0.2.1:
BTW on second print-screen can be seen that last result can be used as implicit argument, just like on a 'normal' calculator (as long variable R exists). WATCH: only if this argument comes before function/ operator, so not working in case of prefix functions (but R can be used as explicit argument too).
On last print-screen Abort-message after syntax-error with 'smallhelp':
MESSAGE for moderating team: updating old post NOT good (see my earlier attempts), but fully new post seems to work