# \[APP\]\[Pro\] Virtual Devices - Virtual Devices to simulate 1 or more real devices

**URL:** <https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723>\
**Category:** Apps\
**Tags:** app, virtual-device, homey-pro\
**Created:** [September 15, 2018, 3:49pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723 "2018-09-15T15:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 412

<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:** [May 1, 2021, 1:15am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/412 "2021-05-01T01:15:15Z")

</div>

I’ve an issue with the `format()` function.  
It seems to work ‘everywhere’, except for (Better)Logic ‘Calculate a value’ cards.  
This function adds a .0 to numbers (I’d like 100,5 and 100,0 to be displayed, not 100,5 and 100)

> [@Formatting number to 2 digits; just cosmetics ;-)](https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734/11):
>
> This worked for me as well, Robert, using the math directly in the push message I found out it doesn’t work with the native logic “calculate a value” card, the result is an empty num var: But, it works a little bit with better logic “Execute matjs expression” card, but the result stays zero Again, in the push message it works fine.

 ![Screenshot_20210430-161432_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39f78407d548f6deaf4d8523ce0009c06e99a13c.jpeg)

---

_[View the full topic](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723)._
