pub fn parse_quantity(value: &str, precision: u8) -> Result<Quantity>
Parses a string into a Quantity with the given precision.
Quantity
Returns an error if the string cannot be parsed into a floating point value.