accept floats as quantity (e.g. weights)
fix incompatibility between float and Decimal
fix tests for previous changes
Merge pull request #13 from Davideddu/master

Accept floats as quantity (e.g. weights)