Skip to main content

float_to_decimal_checked

Function float_to_decimal_checked 

Source
fn float_to_decimal_checked<D>(
    input: f64,
    mul: f64,
    precision: u8,
) -> Result<D::Native, FloatToDecimalError<D>>
where D: DecimalType, D::Native: DecimalCast,