Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Dec() does not work when using different language OS

$
0
0

Dec() does not work when using different language OS:

 

Using PB 12.5, OS English and French, DBParm: DecimalSeperator = '.'

 

Database Driver is automatically able to understand the decimal separator and parse number properly.

 

Non-Issue:

Numbers are stored as numbers in database.

- running French OS where decimal separator is comma

- read the number from database. e.g. 1.50

- have value of 1,50 - correct

 

 

Issue:

Numbers stored as string in database.

- running French OS where decimal separator is comma

- read the string from database. e.g. 1.50

- call Dec(1.50) returns 0 (since decimal separator is comma) - wrong

- call Dec(1,50) returns 1,50 (since decimal separator is comma) - correct

 

I am looking for any solutions.

 

Thanks


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>