Allow for non-integer stock quantities

It looks like a3b522aff87dc89c37dd4b6bbb85a9b208ffe15a removed this
ability.
This would be very useful for extensions like Measurement Price
Calculator.

Thanks!