Separate out the command line runnability from the function
startx is a bad name, change to startValue
Change function name to realToFraction

realToFraction indicates input and output