-
Content Count
103 -
Joined
-
Last visited
Posts posted by Juan C.Cilleruelo
-
-
#Delphi, #FMX, #FireDAC.
I have a DB Field defined as DECIMAL(15, 3);
This produce permanent fields on my program of the type TBCDField.
All of this is correct. Sometimes I need to Assign the value of one of this fields to a local or class variable.
Which type do you recommend for this variable to assure I do not go to lost precision and the value is going to be near to an unaltered form?
Which type will hold better a TBCDField value?
in Databases
Posted
TBcd is a complex data type. I think I can't make mathematical operations directly with two TBCD types.
I'm thinking in Currency type. But this implies convert every TBCDField value to Currency and vice-versa to assign the value from database to my variables and returning the values to the database.
It's complex. I think.
Anyone knows a good solution?
Thanks in advance.