Ratio Calculator

Simplify a ratio and scale it.

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Enter A and B for A:B, then C for the new first value. The ratio is reduced using the greatest common divisor; D = C × B ÷ A.

Good to know

A and B must be integers no greater than one billion. A must be positive; B and C may be zero. C may be decimal; scaled output may have rounding error.

Worked examples

Input

4:6 = 10:D

Expected result

Simplified ratio: 2:3
New second value (D): 15