When using float fields, we may want to let the end user configure the precision that is to be used. The Decimal Precision Configuration module add-on provides this ability.
We will add a Cost Price field to the Library Book model, with a user-configurable number of digits.