Skip to main content

numeric_out_sci

Function numeric_out_sci 

Source
pub fn numeric_out_sci(v: &Numeric, scale: i32) -> String
Expand description

numeric_out_sci: the value as a significand with scale digits after the point, e, a sign and at least two digits of the exponent, as to_char with EEEE writes it. The exponent is the power of ten of the first digit. The significand is the value divided by that power and rounded half away from zero, so it can be 10.0 after the rounding, as in get_str_from_var_sci.