Skip to main content

format_float_pg

Function format_float_pg 

Source
pub fn format_float_pg(f: f64) -> String
Expand description

PostgreSQL float8out shortest-round-trip formatting: fixed notation while the decimal exponent is in [-4, 15), scientific (1e+15, 1e-05) otherwise, with NaN and Infinity spelled out.