# Getting Started - Logic variables

**URL:** <https://community.homey.app/t/getting-started-logic-variables/20132>\
**Category:** Tutorials\
**Created:** [November 2, 2019, 12:54pm UTC](https://community.homey.app/t/getting-started-logic-variables/20132 "2019-11-02T12:54:10Z")\
**Posts on this page:** 3\
**Page:** 5

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [April 25, 2024, 5:58pm UTC](https://community.homey.app/t/getting-started-logic-variables/20132/82 "2024-04-25T17:58:55Z")

</div>

NAN means Not A Number, try to remove, for test, parts of the calculation. The var. Spot Omahinta is a number var?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 25, 2024, 9:21pm UTC](https://community.homey.app/t/getting-started-logic-variables/20132/83 "2024-04-25T21:21:11Z")

</div>

In those calculations you should use dots as decimal sign.

Comma’s are used for functions, like  
`{{round(10+1.51234 ,2)}}`  
the "` ,2`" here means _the round function should round the result to 2 digits_

---

<div class="post-metadata">

**Author:** ![Matti\_Hirvonen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matti_hirvonen/32/79184_2.png) [@Matti\_Hirvonen](https://community.homey.app/u/Matti_Hirvonen)\
**Post date:** [April 26, 2024, 5:04am UTC](https://community.homey.app/t/getting-started-logic-variables/20132/84 "2024-04-26T05:04:03Z")

</div>

Hah, Thank you. This was it! Dots instead of comma´s!

🙂

[Previous page](https://community.homey.app/t/getting-started-logic-variables/20132.md?page=4)
