# Set decimal and thousands separator

**URL:** <https://community.homey.app/t/set-decimal-and-thousands-separator/149313>\
**Category:** Questions & Help\
**Created:** [January 15, 2026, 10:33am UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313 "2026-01-15T10:33:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [January 15, 2026, 10:33am UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/1 "2026-01-15T10:33:11Z")

</div>

Where can I set the decimal and the thousand separator?

Readings like 17.429 kWh are really confusing when 17,4 kWh is meant!

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [January 15, 2026, 10:41am UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/2 "2026-01-15T10:41:31Z")

</div>

I don’t think you can…

But you mean 17.429 kWh versus 17,429 kWh I assume ?

More frustrating is you háve to use a dot in decimals like 1.5 in a lot of places, but then when you save it is automaticly changed to 1,5

Big chance you use a comma when you want to edit the number !

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [January 15, 2026, 2:30pm UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/3 "2026-01-15T14:30:56Z")

</div>

> [@JohanP](#):
>
> But you mean 17.429 kWh versus 17,429 kWh I assume ?

Yes, but just to show that 3 decimals behind a dot makes the dot look like a thousands separator.

I will contact Athom.

---

<div class="post-metadata">

**Author:** ![Ruurd\_van\_der\_Noord](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruurd_van_der_noord/32/71093_2.png) [@Ruurd\_van\_der\_Noord](https://community.homey.app/u/Ruurd_van_der_Noord)\
**Post date:** [January 15, 2026, 4:08pm UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/4 "2026-01-15T16:08:14Z")

</div>

> [@Rmb](#):
>
> 17.429 kWh

you could use [HomeScript](https://homey.app/nl-nl/app/com.athom.homeyscript/HomeyScript/) like:

```auto
// Keep raw number, format for display only
const kwh = 17.429;
const formatted = kwh.toLocaleString('en-US', { 
  maximumFractionDigits: 3,
  minimumFractionDigits: 3 
}); // "17.429"

await log(formatted + ' kWh');

```

or use

```auto
function toDotDecimal(input) {
  if (typeof input === 'number') return input;
  
  // Handle both NL ("17,429") and US ("17.429") + thousands
  return parseFloat(
    String(input)
      .replace(/\./g, '') // Remove all dots (thousands separators)
      .replace(',', '.') // Convert comma to dot (decimal)
  );
}

```

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [January 15, 2026, 4:27pm UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/5 "2026-01-15T16:27:31Z")

</div>

It is all over the place, also in standard tiles.

---

<div class="post-metadata">

**Author:** ![Ruurd\_van\_der\_Noord](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruurd_van_der_noord/32/71093_2.png) [@Ruurd\_van\_der\_Noord](https://community.homey.app/u/Ruurd_van_der_Noord)\
**Post date:** [January 15, 2026, 4:41pm UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/6 "2026-01-15T16:41:06Z")

</div>

.. very annoying indeed and it shouldn’t be like this, but for the time being maybe a script that you can call would be a plaster on the wound?

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [February 4, 2026, 6:41pm UTC](https://community.homey.app/t/set-decimal-and-thousands-separator/149313/7 "2026-02-04T18:41:05Z")

</div>

I requested Athom for a solution. The answer from Athom was:

“we do not currently support localizing the decimals and the thousand separator in Homey”
