Prime Calc is a smarter calculator app for iOS devices. You can download Prime Calc.
This repository contains code from parts of Prime Calc, which you can copy/paste into your own code, following the rules set out in the License. You must acknowledge the developer ("Henry Stern") inside your app.
The calculator in Prime Calc is easier to use than other calculators, with automatic decimal-to-fraction conversion (so you'll know that 0.07692307692 is equal to 1/13), tap-to-undo (never fear tapping the wrong button again, just go back one button press), a fully-viewable stack (so you can see exactly what you just calculated, and make sure it's mistake-free), and really big buttons, so your finger hits what you want it to hit.
With a single swipe down from the top of your screen you will find Prime Calc's today widget, where you can easily calculate without unlocking your iPhone/iPad and without leaving the app you are in.
The tip calculator introduced in Prime Calc v2.0 allows for easy splitting of bills and calculating tips based on %s.
Add, subtract, multiply, or divide two fractions, then tap a button to put the result into the calculator for easy multi-step calculations.
Instantly find out if a number is prime, and find out all of its factors.
Type in two numbers and you can compare them, and find their GCD and LCM. (Unfortunately, we have not yet uploaded this feature's code to Github; if you want it, please email me to request it.)