# Possible locale issue

**URL:** <https://discourse.nodered.org/t/possible-locale-issue/97515>\
**Category:** General\
**Created:** [9 June 2025 16:50 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515 "2025-06-09T16:50:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mick/32/80990_2.png) [@Mick](https://discourse.nodered.org/u/Mick)\
**Post date:** [9 June 2025 16:50 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515/1 "2025-06-09T16:50:44Z")

</div>

I have a friend in Germany using one of my flows. Some of the data is not showing up on his dashboard. When he sent me a screen shot of the debug is showing the property value for SWR as "1,2" instead of "1.2". See below:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/26890450b001bdd766aff4c007f12266702d5230.png)

What would make the json node output values as "1,2" instead of "1.1" . The only thing I can think of would be the locale settings?

Regards

---

<div class="post-metadata">

**Author:** ![Mick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mick/32/80990_2.png) [@Mick](https://discourse.nodered.org/u/Mick)\
**Post date:** [9 June 2025 17:23 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515/2 "2025-06-09T17:23:22Z")

</div>

I did some research and it does seem that in Germany the decimal separator is a comma and not a dot. This would explain the issue. Rather than have the person tweak his locale settings I just modified the function to replace the "," with ".".

Regards

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 June 2025 19:25 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515/3 "2025-06-09T19:25:30Z")

</div>

Most of Europe uses `,` as the decimal separator, not just Germany. 😃

I think that if you converted the text to a number, it would work out.

---

<div class="post-metadata">

**Author:** ![Mick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mick/32/80990_2.png) [@Mick](https://discourse.nodered.org/u/Mick)\
**Post date:** [9 June 2025 20:10 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515/4 "2025-06-09T20:10:55Z")

</div>

That is pretty much what I did...

omsg.SWR = parseFloat(msg.payload.meters["SWR"].replace(",","."));

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 June 2025 20:11 UTC](https://discourse.nodered.org/t/possible-locale-issue/97515/5 "2025-06-23T20:11:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
