Skip to main content

rescale_numeric

Function rescale_numeric 

Source
fn rescale_numeric(
    n: OrderedDecimal<Numeric>,
    constraints: Option<&NumericConstraints>,
) -> Result<OrderedDecimal<Numeric>, Box<dyn Error + Sync + Send>>
Expand description

Rescales n to the scale required by constraints, if any.