My blog in German: https://www.berndplumhoff.de
Compute Nearest Rational Number to a Given Floating Point Number with a Given Maximal Denominator