Highlighted

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

Community Beginner ,
Jun 19, 2020

Copy link to clipboard

Copied

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.

Topics

Advanced actions

Views

47

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Community Beginner ,
Jun 19, 2020

Copy link to clipboard

Copied

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.

Topics

Advanced actions

Views

48

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Participant ,
Jun 19, 2020

Copy link to clipboard

Copied

...

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 !...

😉

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Captivate User Guide
New Group