• Convert decimal number to fraction

    Parameters

    • num: number

      Number to convert

    Returns string

    Fraction with remainder

    dec2Frac(1.25) // Outputs: "1 1/4"