BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Decimal separator

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Atanas Atanasov
Guest





PostPosted: Mon Feb 09, 2004 4:23 pm    Post subject: Decimal separator Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.