Using decimal data type to work with monetary values ​​with db2 and delphi 2010

I am using delphi 2010 with db2 9.7 Express-C, and I have a database that has several decimal type fields for working with monetary values. Now I see that there are some problems associated with this, for example, a value of 9.20 displays the value of 9.19999980926514 in my interface. Do I need to change all fields in my database to DECFLOAT or is there a function, property in tfield or another alternative to solve it?

Thank. Davis

+3
source share

All Articles