# Variables integer or floating point?

**URL:** <https://community.homey.app/t/variables-integer-or-floating-point/7520>\
**Category:** Questions & Help\
**Created:** [January 20, 2019, 7:36pm UTC](https://community.homey.app/t/variables-integer-or-floating-point/7520 "2019-01-20T19:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_van\_de\_Schuur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_van_de_schuur/32/35882_2.png) [@Frank\_van\_de\_Schuur](https://community.homey.app/u/Frank_van_de_Schuur)\
**Post date:** [January 20, 2019, 7:36pm UTC](https://community.homey.app/t/variables-integer-or-floating-point/7520/1 "2019-01-20T19:36:24Z")

</div>

Hi,

I regular (every 15 mins) copy the value of the variable ‘_temperature_’ to a local variable ‘_last_ _temperature_’  
Now when I use the value of these two variables in a comparison; whether they are above or below zero; then it seems the comparison sometimes fails.  
My theory is that in the comparison the value of the variables are truncated to an integer and thus sometimes are exactly zero instead of for instance +0.02 or -0.02  
Could this theory be true?  
The problem is in that case that I can’t compare a variable to larger than or equal to zero. The ‘equal to’ option does not exist!

Regards Frank
