pub fn parse_quantity(value: &str, precision: u8) -> Result<Quantity>
Parses a quantity string with the given precision.