DescriptionThis is an arbitrary precision calculator, essentially meaning it always gives exact numbers. It only supports positive integers.
The program APCALC supports order of operations, as shown in the screenshot.
This program comes with both APCALC and APCALC.LIB. APCALC is an actual calculator that supports order of operations. The .LIB is a library you can import into your code and then do math using arbitrary precision.
The calculator supports these operators:
& (bitwise AND)
| (bitwise OR)
! (bitwise XOR)
< (left shift)
> (right shift)
Converting between decimal strings and APCALC variables is rather slow so some operations in the actual calculator can seem like they're taking forever but they're actually really quick, it's just atm the conversion is really slow, so like even though addition is really fast, 1000000000000...000000+1 might be slow because it has to convert that decimal string to an APCALC variable, do the math, then back again to show you the results. I will hopefully figure out a way to speed up this conversion process in the future.
- Slightly better performance.
- Automatic removal of trailing zeros.
- New added "_SAVE" and "_LOAD" function which compresses your files into 32-bit integer arrays.
- Added "_GCD" function to find the greatest common divisor between two numbers (Euclid's algorithm).
- Added "_RND" function for generating a random APCALC variable. InstructionsRun APCALC to use the calculator.
Open DEV_EXAMPLE if you want to see how to use the library.