Skip to main content

decimal_to_f64_rounded_once

Function decimal_to_f64_rounded_once 

Source
fn decimal_to_f64_rounded_once<D: DecimalType>(
    x: D::Native,
    scale: i8,
    unscaled: f64,
) -> f64
Expand description

Rounds once for the values the arithmetic cannot convert exactly, by parsing the decimal’s own text.