getfract is an open source and command-line based tool which will allow you to convert fractions from decimal representation (e.g., 0.1875) to numerator over denominator (e.g., 3/16).
Building from source: Double click the included Xcode project and choose Build from the Build menu in Xcode. This will build the getfract application in the "/build/Debug" folder inside the source directory.