Skip to main content
Participant
June 19, 2020
Question

(How) Can I enable a different decimal seperator for variables?

  • June 19, 2020
  • 1 reply
  • 249 views

Hi there. I'm not sure if this has been asked before but I haven't found any similar question.

Here in Germany we use a comma as a decimal seperator (for example when we write "35,50 €"). My problem is that in Cap2017, which we currently use at our org, I can't do basic arithmetic operations with variables that use a comma as a decimal seperator. It only works with a dot. This is problematic because I want to use a TEB variable with user input.

 

Is there any way to change a setting to switch over from dots to commas as seperators or enable both? The only other option would be to basically convert the user input variables via JS.

This topic has been closed for replies.

1 reply

Dirlo
Inspiring
June 19, 2020

...

Hello !...

I had the same problem... (I'm french...)

I used Javascript (Action in On Enter):

var new_var = old_var.toLocaleString("fr-FR");

old_var = variable with dot

new_var = variable with coma

(I think you can also change the "fr-FR" with "de-DE" ???...)

Hope that helps !...

😉