Yes, indeed that was the problem. How stupid of me.
Did you set the number of decimals on the database field? The default number of decimals for the database field is 2, you might need to increase it to 6. Note that this is not the same as setting the display format of the field. It is an additional property on the Data Dictionary for DECIMAL type fields.