Convert decimal number to fraction
Number to convert
Fraction with remainder
dec2Frac(1.25) // Outputs: "1 1/4" Copy
dec2Frac(1.25) // Outputs: "1 1/4"
Convert decimal number to fraction