This may be a localization problem, but I wanted to share as I spent half a day figuring out what was happening…
I have float values stored in an xml element inside my plugin (this is for factory preset value). (So they are stored as string like “0.707”).
Now to retreive the value of each string attributes from my xml, I use getAttributeValue().getFloatValue(), which work fine in most host. I get my string i.e. “0.707” converted to a float 0.707
But in plogue bidule, it always convert the string to float 0, because the comma is not used the same way.
Bidule expect 0,707 and not 0.707
If I to do this : getAttributeValue(i).replaceCharacter(’.’,’,’).getFloatValue()
in order to ‘prepare’ the string data before the conversion to float, then it works in bidule, but now it broke all other hosts (they will convert to 0).
So my question is how to handle this automatically ?