Integer ratio calculator

This form will let you enter a ratio, and then it returns to you the best integer pair that can be used to create that ratio.

This is useful for doing math on a CPU that doesn't have floating point. It's also useful for designing digital phase locked loops.

Ratio (floating point):
Largest denominator (integer):
source code

back