Will you ever have negative fractions?
If not, you might "clean" the value input as number and leave the custom function unchanged:
ConvertFractToNum (substitute ( number ; "-" ; " " ) )
No, we will never deal with negative numbers in this case. Thank you so much for the help! That did the trick.