# Proper way to handle comma as decimal point

**URL:** <https://forum.universal-robots.com/t/proper-way-to-handle-comma-as-decimal-point/2216>\
**Category:** URScript\
**Created:** [July 2, 2018, 12:18pm UTC](https://forum.universal-robots.com/t/proper-way-to-handle-comma-as-decimal-point/2216 "2018-07-02T12:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon82484413](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon82484413](https://forum.universal-robots.com/u/anon82484413)\
**Post date:** [July 2, 2018, 12:18pm UTC](https://forum.universal-robots.com/t/proper-way-to-handle-comma-as-decimal-point/2216/1 "2018-07-02T12:18:36Z")

</div>

So far I have been developing this URCap, with the language set to English, now I tried to set it to Danish, and that makes 0.5 values turn into 0,5 and that is causing problems when using them in a script.

What is the proper way to handle this? Do I go over all variables and do a replace(",", “.”); on them before using them in the script generator?

---

<div class="post-metadata">

**Author:** ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)\
**Post date:** [July 3, 2018, 4:20am UTC](https://forum.universal-robots.com/t/proper-way-to-handle-comma-as-decimal-point/2216/2 "2018-07-03T04:20:37Z")

</div>

> [@Change System Language makes changes the decimal seperator](https://forum.universal-robots.com/t/change-system-language-makes-changes-the-decimal-seperator/1720):
>
> 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]
