# Round numbers

**URL:** <https://community.homey.app/t/round-numbers/161646>\
**Category:** Questions & Help\
**Created:** [November 1, 2026, 6:28pm UTC](https://community.homey.app/t/round-numbers/161646 "2026-11-01T18:28:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cor\_van\_Leuken](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cor_van_leuken/32/120889_2.png) [@Cor\_van\_Leuken](https://community.homey.app/u/Cor_van_Leuken)\
**Post date:** [November 1, 2026, 6:28pm UTC](https://community.homey.app/t/round-numbers/161646/1 "2026-11-01T18:28:24Z")

</div>

Rounding Numbers  
I want the numbers to be rounding to some decimalen.  
See screenshot  
The number is shownieuws with a lot of non significant decimals.  
How can I limit it to 2 or 3 significant decimals?.

 ![IMG_3085](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cdbc7ed4d1a60c3563e095f096930ccd50c0ab17.jpeg)

---

<div class="post-metadata">

**Author:** ![Borssie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/borssie/32/120230_2.png) [@Borssie](https://community.homey.app/u/Borssie)\
**Post date:** [November 1, 2026, 7:06pm UTC](https://community.homey.app/t/round-numbers/161646/2 "2026-11-01T19:06:57Z")

</div>

Can you show the complete flow? How are these numbers being calculated? Which variable or which app?

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [November 1, 2026, 7:38pm UTC](https://community.homey.app/t/round-numbers/161646/3 "2026-11-01T19:38:40Z")

</div>

You can use a logic card to round values, examples below.

Different commands can be used

Round= normal rouding

Ceil = always round up

Floor = always round down

Number of decimals behind the comma (in examples I have zero)

 ![Image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/49ac0f3871659f94b10e601007e40c847b586cad.png)

 ![IMG_3148](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2a0509128122415777d931700d79dee262f8ea63.jpeg)

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [November 1, 2026, 8:05pm UTC](https://community.homey.app/t/round-numbers/161646/4 "2026-11-01T20:05:09Z")

</div>

As an alternative to the above, if you also want to control the locale (e.g. using a comma as decimal separator, instead of a period), you might want to consider the ‘Format number as’-flowcard from the [Better Logic Library](https://homey.app/a/net.i-dev.betterlogic/) app:

 ![IMG_3115](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/78935aa5429d61df251d69fee98efc575bff19b7.jpeg)

The example formats a number with 2 decimals and using the Dutch locale (comma for decimals; period for thousands).

---

<div class="post-metadata">

**Author:** ![Cor\_van\_Leuken](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cor_van_leuken/32/120889_2.png) [@Cor\_van\_Leuken](https://community.homey.app/u/Cor_van_Leuken)\
**Post date:** [November 1, 2026, 9:44pm UTC](https://community.homey.app/t/round-numbers/161646/5 "2026-11-01T21:44:03Z")

</div>

Thanks  
It works

And in general:  
I miss documentation and examples of special commands like round(22/7,3)

---

<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:** [November 1, 2026, 9:48pm UTC](https://community.homey.app/t/round-numbers/161646/6 "2026-11-01T21:48:56Z")

</div>

Goto [https://mathjs.org/](https://mathjs.org/) for these math.js commands. Most of these can be used with Homey.
