Function parse_price
Source pub fn parse_price(value: &str, precision: u8) -> Result<Price>
Expand description
Converts a textual price to a Price
using the given precision.
ยงErrors
Returns an error if the string fails to parse into f64
or if the number
of decimal places exceeds precision
.