# How to add PI in a formula

**URL:** <https://community.homey.app/t/how-to-add-pi-in-a-formula/44722>\
**Category:** Questions & Help\
**Created:** [March 15, 2021, 7:50pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722 "2021-03-15T19:50:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fred\_de\_Goede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_de_goede/32/13510_2.png) [@Fred\_de\_Goede](https://community.homey.app/u/Fred_de_Goede)\
**Post date:** [March 15, 2021, 7:50pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/1 "2021-03-15T19:50:17Z")

</div>

Does somebody know how to work with PI in a calculation formula?  
I can’t get it in as a symbol which results in the 3.14…

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [March 15, 2021, 7:51pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/2 "2021-03-15T19:51:43Z")

</div>

> [@Fred\_de\_Goede](#):
>
> I can’t get it in as a symbol which results in the 3.14…

I don’t want to bring the bad news, but… isn’t this your answer? use 3.14 as value? or is that too easy.

For the harder answer, you can use  
`PI`  
in the logic cards (13 digits behind the comma), ~~most likely not in the default logic cards as those have limited support for that.~~

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 15, 2021, 7:58pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/3 "2021-03-15T19:58:00Z")

</div>

> [@Caseda](#):
>
> use 3.14 as value?

At least [39 digits behind the comma](https://www.sciencefriday.com/segments/how-many-digits-of-pi-do-we-really-need/) or it doesn’t count 😛

---

<div class="post-metadata">

**Author:** ![Fred\_de\_Goede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_de_goede/32/13510_2.png) [@Fred\_de\_Goede](https://community.homey.app/u/Fred_de_Goede)\
**Post date:** [March 16, 2021, 4:18pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/4 "2021-03-16T16:18:47Z")

</div>

Thanks, PI did the job. 👏 👌 👍 I needed more accuracy.

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [March 16, 2021, 5:00pm UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/5 "2021-03-16T17:00:45Z")

</div>

Well, my first thought was to calculate it and I found a way to do that online, but I’m still trying to fugure out how to do it with Homey. I guess it involves a smart fridge:

> **[How to Calculate Pi by Throwing Frozen Hot Dogs](https://www.wikihow.com/Calculate-Pi-by-Throwing-Frozen-Hot-Dogs)**
>
> Throwing a pie in someone's face is good. Throwing food to discover pi is better. Believe it or not, of all the countless ways to approximate the most prolific irrational number in the universe, there are none quite as interesting or as...

---

<div class="post-metadata">

**Author:** ![Fred\_de\_Goede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_de_goede/32/13510_2.png) [@Fred\_de\_Goede](https://community.homey.app/u/Fred_de_Goede)\
**Post date:** [March 17, 2021, 9:53am UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/6 "2021-03-17T09:53:57Z")

</div>

Amazing. 😀 😀 😀. Not that accurate but incredible. Going to try it tonight. Will be a special diner 🤣 🤣

---

<div class="post-metadata">

**Author:** ![Fred\_de\_Goede](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_de_goede/32/13510_2.png) [@Fred\_de\_Goede](https://community.homey.app/u/Fred_de_Goede)\
**Post date:** [March 17, 2021, 10:10am UTC](https://community.homey.app/t/how-to-add-pi-in-a-formula/44722/7 "2021-03-17T10:10:37Z")

</div>

For people who don’t believe this. Read [http://www.math.leidenuniv.nl/~hfinkeln/seminarium/stelling\_van\_Buffon.pdf](http://www.math.leidenuniv.nl/~hfinkeln/seminarium/stelling_van_Buffon.pdf)  
😯 😯 😀 😀
