How to check the amount of decimal places in a float?

Forgot this thing existed; it was deprecated some time ago. It used to mess up the currency code being on the left/right of the value. If it is working as intended now, this is an elegant solution when working with bulk data.