lib.formatter.units: Explicitly convert value to float

Needed for some uses of the Decimal column type