[math-fun] Turning a fraction into an integer and reverse: three efficient algorithms