# A variable defined as a fraction?

**URL:** <https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462>\
**Category:** Questions\
**Created:** [June 8, 2021, 3:44pm UTC](https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462 "2021-06-08T15:44:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Auban\_Willats](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/auban_willats/32/1354_2.png) [@Auban\_Willats](https://cl.desmos.com/u/Auban_Willats)\
**Post date:** [June 8, 2021, 3:44pm UTC](https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462/1 "2021-06-08T15:44:14Z")

</div>

I’ve set a list in a hidden graph component and used u=(random(U\_1)) to get a random value for the variable. But! My list is a list of fractions. When I try to pull that variable into a note it’s giving me the decimal approximation. Is there a way to pull a fraction into a variable?

Since I’m looking for radian measures I can’t just randomize the numerator and randomize the denominator.

---

<div class="post-metadata">

**Author:** ![SteinSchreiber](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/steinschreiber/32/2267_2.png) [@SteinSchreiber](https://cl.desmos.com/u/SteinSchreiber)\
**Post date:** [June 8, 2021, 4:03pm UTC](https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462/2 "2021-06-08T16:03:52Z")

</div>

I don’t know if this is exactly what you are looking for, but this is a way I approached this problem. I used a hidden table and then called on the latex values. [Unit Circle Drag Point • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/609b470cb568273b9a658336)

---

<div class="post-metadata">

**Author:** ![Mike\_Gleeson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mike_gleeson/32/650_2.png) [@Mike\_Gleeson](https://cl.desmos.com/u/Mike_Gleeson)\
**Post date:** [June 8, 2021, 5:29pm UTC](https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462/3 "2021-06-08T17:29:43Z")

</div>

Could you share your Activity?

---

<div class="post-metadata">

**Author:** ![Auban\_Willats](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/auban_willats/32/1354_2.png) [@Auban\_Willats](https://cl.desmos.com/u/Auban_Willats)\
**Post date:** [June 8, 2021, 6:27pm UTC](https://cl.desmos.com/t/a-variable-defined-as-a-fraction/3462/4 "2021-06-08T18:27:24Z")

</div>

I think I’m going to use @SteinSchreiber’s suggestion of the table. That worked for me.
