Hi all,
why leads the assignment "ldc_X = 25E2" to 2500 and "ldc_X = 2.5E3" to 2? This happens with decimal, double, long and real variables in all(?) PowerBuilder versions inclusive PB1900R2?
Kind regards,
Bernhard
- Bernhard Stoeter
- PowerBuilder
- Wednesday, 29 April 2020 13:49 PM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
(sorry, I know it was probably a typo)
And yes, your number 2) is I think the best thing to do. In code, I've never assigned "," as a decimal separator for hard coded values. Unless you might be working with strings and decimals. I think decimals do look at the language settings (when working with strings in combination), but all other values need a dot, no matter which language setting.
regards
I checked with VB.NET and a dot is always used no matter what regional setting I use. I guess that's a standard in all programming languages.