A fraction in its simplest form is an equation (division). You could make the parameter "numerator" and "denominator" and do the math on the decimal value. Use [.n] to control the number of digits. From there, you can make it a string if you like.
Yes, it should be simpler, but this is Creo