added support for parsing quantity into a float value