Best rational approximation with numerator/denominator less than 255

1.2k Views Asked by At

An old problem: I have rational numbers which I want to approximate with the best fraction where both the numerator and denominator are written on eight bits, so between $0$ and $255$. Is there an algorithmic way to find it? If not, what can I do ?