Safwan
2006-09-13 20:48:27 UTC
Hi
I want your recommendation !
Interbase Decimal (12, 4) : should I use ( ->AsFloat , ->AsCurrency
or ->AsBCD ) in "BDS2006:BCB".
And if I want to do some calculation, what datatype to declare in "C" :
float , double or long double.
A decimal (12, 4) : in interbase.
float m = 0.0;
m = Dataset1A->AsFloat * somevalue.
My application is an accounting program. it uses numbers like ( 5464.4200 )
I ask this because I face some problem in fraction and calculation. it gives
me sometimes ( 5464.4199 ) insted of ( 5464.4200 )
I think that there is no compatiblity between the Interbase datatype and C
datatype. or I have a wrong thinking.
Thanks you for any kind of help.
Your's
Safwan.
--------
Thanks Borland for their :
Borland Developer Studio 2006 : BCB.
Borland Interbase 7.5 SP1.
TeamB.
We cannot work without thus tools.
I want your recommendation !
Interbase Decimal (12, 4) : should I use ( ->AsFloat , ->AsCurrency
or ->AsBCD ) in "BDS2006:BCB".
And if I want to do some calculation, what datatype to declare in "C" :
float , double or long double.
A decimal (12, 4) : in interbase.
float m = 0.0;
m = Dataset1A->AsFloat * somevalue.
My application is an accounting program. it uses numbers like ( 5464.4200 )
I ask this because I face some problem in fraction and calculation. it gives
me sometimes ( 5464.4199 ) insted of ( 5464.4200 )
I think that there is no compatiblity between the Interbase datatype and C
datatype. or I have a wrong thinking.
Thanks you for any kind of help.
Your's
Safwan.
--------
Thanks Borland for their :
Borland Developer Studio 2006 : BCB.
Borland Interbase 7.5 SP1.
TeamB.
We cannot work without thus tools.