# Displaying pi as a fraction not decimal

**URL:** <https://cl.desmos.com/t/displaying-pi-as-a-fraction-not-decimal/2743>\
**Category:** Questions\
**Created:** [February 23, 2021, 3:52pm UTC](https://cl.desmos.com/t/displaying-pi-as-a-fraction-not-decimal/2743 "2021-02-23T15:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenn\_Vadnais](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jenn_vadnais/32/48_2.png) [@Jenn\_Vadnais](https://cl.desmos.com/u/Jenn_Vadnais)\
**Post date:** [February 23, 2021, 3:52pm UTC](https://cl.desmos.com/t/displaying-pi-as-a-fraction-not-decimal/2743/1 "2021-02-23T15:52:02Z")

</div>

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.

 ![pi form](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/7/7a1d382d080d1e39e64743c948cd45b6edad22e5.png)

---

<div class="post-metadata">

**Author:** ![Susan\_Lauer](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/susan_lauer/32/1832_2.png) [@Susan\_Lauer](https://cl.desmos.com/u/Susan_Lauer)\
**Post date:** [February 23, 2021, 5:17pm UTC](https://cl.desmos.com/t/displaying-pi-as-a-fraction-not-decimal/2743/2 "2021-02-23T17:17:05Z")

</div>

Put this in the graph CL:

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

```

And this for the screen CL:

```auto
subtitle: g1.script.f

```

You could also make it fractional, so reply if you want fractions instead.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/1/11e0d716205d86f0c129d488524f810d0a37e334.png)

---

<div class="post-metadata">

**Author:** ![Susan\_Lauer](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/susan_lauer/32/1832_2.png) [@Susan\_Lauer](https://cl.desmos.com/u/Susan_Lauer)\
**Post date:** [February 23, 2021, 6:24pm UTC](https://cl.desmos.com/t/displaying-pi-as-a-fraction-not-decimal/2743/3 "2021-02-23T18:24:54Z")

</div>

This is with fractions

> **[Fractions in graph changes with a slider • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/60354244a5895d3ee9d0940d)**
>
> An example of showing fractions instead of decimals for trigonometric changes in period.
