Displaying pi as a fraction not decimal

Hello everyone,
I would like to display the highlighted number in pi notation instead of the decimal. The value is dynamic and changes based on the movement of the purple slider. Any suggestions? Thank you.

Put this in the graph CL:

f="${c}csc(${a}`\pi` x)"
a= this.number(`a`)
c= this.number(`c`)

And this for the screen CL:

subtitle: g1.script.f

You could also make it fractional, so reply if you want fractions instead.

This is with fractions

1 Like