I am using template expressions for generating files. For example:
def generateStuff(MyObject in) {
'''
This is the wrong value: «calculatedoubleValue(in.doubleValue)»
'''
}
The value of doubleValue
is an double
. But the generator produces a comma instead of an point, as delimiter.
I also tried using DecimalFormat
, for example:
def generateStuff(MyObject in) {
var df = new DecimalFormat("0.000");
var calculated = calculatedoubleValue(in.doubleValue)
'''
This is the wrong value: «df.format(calculated)»
'''
}
But unfortunately it still produces a comma. I wonder, because it only happens to a few values and not to all, allthough I am only working with double
s. Another strange thing is, that it produces points, when debugging (Runtime Eclipse Application) but commas after I export the application as an Eclipse product.
What could be the cause for this?