3

When using this code:

aqString["Format"]("%.2f", numb);

the returned number used "," as a decimal point before - which is correct since I'm in Norway.

Suddenly - like a few days ago - it started to return the decimal point as "." which is not the standard in Norway. I have no problem working around this, but since we haven't changed the locale settings on the machine or changed anything (that I'm aware of), this should not happen.

I've output my current locale with aqEnvironment.LanguageForNonUnicodePrograms and it's correct. I suspect this would only output the windows setting anyway.

Is there a way to change how TestComplete returns a decimal point? Could some settings in an obscure .ini file have changed?

Any input would be appreciated. I would just like to know how this happened. I'm going to change the flow anyway in order to make the nightly runs turn green, but I feel like I could learn something here.

  • Any software updates around the time it changed? – mutt Jun 28 '18 at 4:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.