I want to store decimal float values in a table with column of type DECFLOAT
using db2 library and c++. I understand that SQLDECIMAL64
and SQLDECIMAL128
have been added for storing decimal float values. Now to insert data into this DECFLOAT
column how do I assign value to SQLDECIMAL64
or SQLDECIMAL128
as these are unions.
Is there any c++ data type that can be used to store decimal float value in the range of SQLDECIMAL64
or SQLDECIMAL128
and that can be inserted in DECFLOAT
?