# Change System Language makes changes the decimal seperator

**URL:** <https://forum.universal-robots.com/t/change-system-language-makes-changes-the-decimal-seperator/1720>\
**Category:** URCaps SDK\
**Created:** [March 7, 2018, 3:09pm UTC](https://forum.universal-robots.com/t/change-system-language-makes-changes-the-decimal-seperator/1720 "2018-03-07T15:09:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon58840761](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon58840761](https://forum.universal-robots.com/u/anon58840761)\
**Post date:** [March 7, 2018, 3:09pm UTC](https://forum.universal-robots.com/t/change-system-language-makes-changes-the-decimal-seperator/1720/1 "2018-03-07T15:09:59Z")

</div>

Hi when I change the language to ex Danish, decimal separator turns to a comma,  
this makes my program throw errors since i didn’t handle it.  
also when looking at the ui for an input field number it show . but writes , which is counter intuitive.  
Do I really need to handle this for every single input number field?

![5%20Clone%20%5BRunning%5D%20-%20Oracle%20VM%20VirtualBox_017](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/634b5d2160ab94d873a74ad688def0d5a1f29571.png)

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [March 8, 2018, 7:30am UTC](https://forum.universal-robots.com/t/change-system-language-makes-changes-the-decimal-seperator/1720/2 "2018-03-08T07:30:32Z")

</div>

Yup, localization gives you a comma for e.g. French notation, and a dot for the English decimal separator.

> [@Good practice: Reading floats from number input field](http://forum.universal-robots.com/t/good-practice-reading-floats-from-number-input-field/971):
>
> When reading a floating point number from an InputTextField, it should be noted, that there can be different decimal notations, based on the users selection of language. English language would use dot-notation (e.g. 1.5) where e.g. French would use comma-notation (e.g. 1,5) - this is also the raw text that would be read from the input field using the getText() method. As URScript will need dot-notation for decimal separation, it is good practice to ensure that the number parsed will have this …
