Add, subtract, multiply, or divide two exact fractions and show the decimal approximation.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Operands are parsed as integers or fractions, then the selected operation combines numerators and denominators. The greatest common divisor reduces the exact result before a six-place decimal approximation is appended.
1/3 + 1/4
7/12 (0.5833333333333334)
Recipes add cup fractions, construction plans subtract measurements, and math exercises compare exact results with decimals.