Function parse_price

Source
pub fn parse_price(value: f64, precision: u8) -> Price
Expand description

Parses a Posei price from the given value.

Values outside the representable range are capped to min/max price.