# Use of pi in prompt

**URL:** <https://cl.desmos.com/t/use-of-pi-in-prompt/355>\
**Category:** Questions\
**Created:** [January 16, 2019, 4:03pm UTC](https://cl.desmos.com/t/use-of-pi-in-prompt/355 "2019-01-16T16:03:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [January 17, 2019, 5:47pm UTC](https://cl.desmos.com/t/use-of-pi-in-prompt/355/4 "2019-01-17T17:47:32Z")

</div>

Ooh, this looks like you’re using it as a condition and not in a prompt (i.e. not printing it in a note). Seems very similar to the discussion happening in the other thread on the forum: [Pi as student input](https://cl.desmos.com/t/pi-as-student-input/356/4)

I wouldn’t recommend checking against an irrational number and the best advice I can give is to use pi to a long decimal (less than 15 places) here. I’d recommend something like 5-8 digits.

`slope_graph.number("m") < 3.14159265 or slope.graph.number("m")>3.14159266 "...try again...."`

---

_[View the full topic](https://cl.desmos.com/t/use-of-pi-in-prompt/355)._
