parse_quantity

Function parse_quantity 

Source
pub fn parse_quantity(value: &str, precision: u8) -> Result<Quantity>
Expand description

Parses a string into a Quantity with the given precision.

ยงErrors

Returns an error if the string cannot be parsed into a floating point value.