# \[BUG\] Decimal separator in numeric input field behaves wrong for non-english locales

**URL:** <https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361>\
**Category:** Ignition Early Access\
**Created:** [March 14, 2019, 8:04pm UTC](https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361 "2019-03-14T20:04:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [March 14, 2019, 8:04pm UTC](https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361/1 "2019-03-14T20:04:43Z")

</div>

In the vision designer’s preview mode, the numeric text field behaves wrong if the systems locale uses a comma as decimal separator.  
There is also a different behaviour when a project language is new added.

Ignition: b2019031302, Client OS: Windows 10, Client system locale: German

Behaviour on my system:

- New project
- Create a numeric text field with default settings
- Text filed behaves as expected, a dot is used as decimal separator
- Add ‘German’ as project language
- Switch preview language to ‘German’
- Enter ‘12,34’ and press ‘Enter’
- Displayed value is ‘1.234’ when enter is pressed, value property is correct 1.23
- When leaving the text field with ‘Tab’ the display changes to 1,23
- Enter ‘12,34’ and press ‘Tab’
- Displayed value and property is ‘1.234’

Save project, restart designer

- Preview mode, language ‘German’
- Text field still displays ‘1.234’
- After entering a value, text field behaves as expected
- Set preview language to ‘English’
- Enter ‘12.34’ and press ‘Enter’
- Displayed value is ‘1,234’ , value property is ‘1.23’

The client shows the same behaviour when ‘English’ is selected in the login dialog. Also, after a start the client displays the text that was displayed in the designer when the project was saved. The current value should be parsed to the current locale on windows opening instead.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [April 2, 2019, 11:34pm UTC](https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361/2 "2019-04-02T23:34:27Z")

</div>

Hi @chi,

I apologize for the delayed response here. Have you ran into the same issue on the newest build?

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [April 3, 2019, 6:56am UTC](https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361/3 "2019-04-03T06:56:14Z")

</div>

There have been issues with decimal separators on foreign languages before. See

> [@NumericTextField Decimal format](http://forum.inductiveautomation.com/t/numerictextfield-decimal-format/9907):
>
> In our country we have Decimal separator ‘,’ and ‘.’ for the thousands. When i use numerictextfield component with a float value, it show value like ‘12.88’ and I must enter ‘12,88’ for a valid change value otherwise it understand ‘1288’ Is it a way to standardize display and input value with the numerictextfield?

But this appears to interpret the separator one stage further. First rendering it with one separator, and then interpreting it as the other.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [April 3, 2019, 9:24am UTC](https://forum.inductiveautomation.com/t/bug-decimal-separator-in-numeric-input-field-behaves-wrong-for-non-english-locales/23361/4 "2019-04-03T09:24:05Z")

</div>

Hi,

in build `b2019033002` and also in `8.0.0-rc1 (b2019040123)` the designer still shows the same issue as before after restarting the designer. It is now consistent before and after the first save.  
The client shows this issue in this build only when the locale is changed after the first login (Logoff, Relogin with another locale).
