I solved my problems with the limitations of calc with respect to divisions: I surpassed the limit of 0x7FFFFFFF (2exp31-1) and extended division to the full range of calc: 07FFFFFFFFFFFFFF (2exp63-1) for dividend. For divider however max 0xCCCCCCCCCCCCCCC (about 1/10 of dividend).
If the dividend is too high for divisions and use of the remainder with calc, the script has a 'long division'-engine using substraction only.
If the number of digits of the dividend and/ or the divider exceeds the limits of calc another engine is used with a more complex 'long division' using decimals, 37-digit compare-functions and substraction + summation and comma-shifting.
New operators: exponentation, square root and cubic root (cubic root is limited to max 8-9 digits after rounding. Because of this limitation, CRT is only available as function).
Further a bunch of functions, one memory variable and various rounding possibilities.
Some print-screens (Main Help comes up with CALCD.G4B only, or CALCD.G4B help or CALCD.G4B /?:
![CALCD.G4B help.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-42864200-1664056643_thumb.jpg)
![CALCD.G4B Operators and quasi-operators I.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-10837800-1664056666_thumb.jpg)
![CALCD.G4B Operators and quasi-operators II.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-79318400-1664056676_thumb.jpg)
Print-screens of some functions:
![CALCD.G4B Functions I.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-00704100-1664056842_thumb.jpg)
![CALCD.G4B Functions II.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-99291000-1664056852_thumb.jpg)
As can be seen on the second print-screen above, some functions can take their data from FILE. In the last example number of files+directories is counted, compare with output of FATLSDIR.G4B (still unpublished).
To make the story not too long a last print-screen with Help of quasi-operator INV together with calculation of the last Example. Showing more possibilities of using CALCD.G4B
![CALCD.G4B help INV + last Example with echoR.jpg](http://reboot.pro/uploads/monthly_09_2022/post-70301-0-36170500-1664057086_thumb.jpg)
BTW each operator or function has it's own help screen, just follow the lists in the main Help-screen.
For instance: CALCD.G4B help ^ or CALCD.G4B help COUNT
More general help: CALCD.G4B help mem and CALCD.G4B help syntax
Each screen gives some Examples too.
The script can be downloaded from https://github.com/deomsh/CALCD
Release v1.20: https://github.com/d...eases/tag/v1.20