Displaying exact values

Is there a way to display the exact value rather than a decimal for red “h” in slide 3?
h increments by multiples of pi/4. I would like the display to be exact rather than decimal approximations.

Thanks,

I included a fourth screen where I added a few lines in the calculator to display h in the form pi/4 etc. I also attached a 5th screen from an activity I created where I was trying to solve a very similar problem.

Here is the activity that screen 5 is a part of.

Perfect! Thanks for your help!