I am using Drupal 7 and have a float field. It is used to enter prices.
Most of prices I enter have decimals (e.g. 101.82, 99.88). Some of the prices are negative values (e.g. -55.52, -1009.88).
Sometimes when I enter a decimal value, Drupal will remove the decimal value. (E.g. 101.82 will become 101.00). Other times, it will keep the decimal value.
There doesn’t seem to be any rhyme or reason as to why it keeps the decimal values for some fields and omits it for other fields.
How can I ensure that it always keeps the decimal value?