$ frack 0.162790698
-> 7/43
Convert decimal numbers to fraction form.
It's like that fraction function that's on your fancy calculator. Exactly like that.
To compile frack, just clone a copy of the repository, cd
into directory it was cloned into, and run make
. The resulting "frack" executable can be placed in any location you'd like that is in your $PATH
. No judgement here.
To convert a decimal to a fraction, just run frack from the command line and supply the input number as the first and only argument. You can also put Frack in the middle or at the end of a chain of commands, and it will read decimal numbers from stdin
.