My submission for this week is a calculator that works in fractions.

It was inspired by a forum discussion 3 months ago where the OP was looking for a replacement for an old RealBasic app called FractionAction. The topic is here: https://forum.xojo.com/47119-updating-a-runtime-to-64-bit-on-mac/0

This calculator isn’t a duplicate of the original app, but I think it performs all of the same functions, possibly more. You can enter numbers as fractions or as decimals. If you enter as decimal, it will immediately convert to the simplest equivalent fraction. You can also convert fractions back to decimal, and it will give you the exact decimal value, identifying repeating decimals and showing the repeating part.

I had intended this to be last week’s entry, but my logic for the operational state machine was flawed, and it turned into a nightmare. So, I had to redo it.

I can see that a couple more functions (eg., reciprocal) would be useful. So, an upgraded version may possibly be a later entry in the coming weeks.

BTW, in case anyone is wondering, I deliberately excluded scientific functions such as sin, cos, tan, log, exp, for the simple reason that they produce irrational numerical results; i.e., they cannot be expressed exactly as a fraction, which makes them pointless in a calculator that works in exact fractions.

Project here:

Fraction Calculator Project