# Formatting number to 2 digits; just cosmetics ;-)

**URL:** <https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734>\
**Category:** Flows\
**Created:** [October 30, 2020, 11:09am UTC](https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734 "2020-10-30T11:09:52Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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 19, 2021, 7:26pm UTC](https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734/11 "2021-04-19T19:26:00Z")

</div>

This worked for me as well, Robert, using the math directly in the push message

 ![Screenshot_20210419-205747_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2eee3d4fc63076589e1744d6546fe4b408f249c5.jpeg)

I found out it doesn’t work with the native logic “calculate a value” card, the result is an empty num var:

 ![Screenshot_20210419-211854_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e1c9f977e223486e1112d90c42020ca8a71a7367.jpeg)

But, it works a little bit with better logic “Execute matjs expression” card, but the result stays zero

 ![Screenshot_20210419-211629_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6ffff11d9f48acee83eeeb35a63f9f52fcec39d.jpeg)

Again, in the push message it works fine.

 ![Screenshot_20210419-214503_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/f/8f35dd02fffb7e3e83d3fdfabc356fe6aa79e37b.jpeg)

 ![Screenshot_20210419-213830_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/88d63ddd6abb0219544758a7cc0411b858df4d16.jpeg)

Now I have to find out how to get the calculated value into the virtual thermometer…

---

_[View the full topic](https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734)._
