Can decimal value of a variable/dimension be interpreted as fraction in custom property?

Is there any way, one could convert decimal value of a global variable to fractions (say from 0.375 to 3/8) in the custom property of the part?

SolidworksParts And Features