When I try to store some values into a field in Firebird of type NUMERIC(15,4) then they are not stored correctly.
One value that seems to get saved incorrectly is 1.56. If you try and store this value in a NUMERIC(15,4) field like this:
Code: Select all
ParamByName('VAL').AsCurrency := 1.56;
If, however, you save the value as a float:
Code: Select all
ParamByName('VAL').AsFloat := 1.56;
I am not sure where to look to resolve this problem? Could someone please help shed some light.
Thanks
Peter