 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Atanas Atanasov Guest
|
Posted: Mon Feb 09, 2004 4:23 pm Post subject: Decimal separator |
|
|
I use Delphi6, midas.dll and dbExpres drivers to connect to DB2 database.
I have problem with decimal values from my database when I change my
DecimalSeparator and ThousandSeparator: My database values are multiplied by
100000.
For ex.:
Field1: Decimal(18,5)
Field1.AsFloat = 32 (it is my real database value)
If DecimalSeparator is equal to "." and ThousandSeparator is equal to ","
all is fine.
If DecimalSeparator is equal to "," and ThousandSeparator is equal to "."
then Field1.AsFloat = 3200000 (the correct value is 32).
My configuration is:
Operation system: WindowsXP
Database server: DB2 v5.02
Language: Delphi 6
Thanks in advance.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|