Different format for text field Content

I have a code to substitute variables into the document but when I try to insert and use numeric variable I have to use different decimal sign for different types of text fields. For User fields I need to use decimal dot and for SetExpression fields I need to use decimal comma. I’ve tried to set Value property as double but it doesn’t work.

Example template: template-test2.odt

Example python3 code: #!/usr/bin/env python3import logginglogging.basicConfig(level=logging.DEBUG) - Pastebin.com

It looks like you have a solution. What is the question?

Are there way to write numeric data to fields consistently?