Formula
scale decimals → integers · divide both by gcd
Move both terms to a shared integer scale, compute their absolute GCD, divide, and normalize the sign to the first term.
Reduce a two-part ratio even when the inputs contain decimals or a negative sign. CalcFlow uses controlled decimal scaling and an exact BigInt greatest common divisor, then explains the scale and division.
scale decimals → integers · divide both by gcd
Move both terms to a shared integer scale, compute their absolute GCD, divide, and normalize the sign to the first term.
Both terms should represent compatible quantities. The simplified ratio itself is unitless.
Formula v1.0.0
Reviewed 2026-08-03
CalcFlow engineering review
1.5:2.25 scales to 150:225. Their GCD is 75, so division gives the reduced ratio 2:3.
Yes. CalcFlow moves both decimals to a common integer scale before finding the GCD.
Yes. The sign is normalized to the first term so equivalent forms have one consistent display.
Both terms have no defined relative scale, and every multiplier would produce the same pair.