Skip to main content

expand_scientific_literal

Function expand_scientific_literal 

Source
pub fn expand_scientific_literal(s: &str) -> SciExpanded
Expand description

Expand scientific notation into a plain decimal string by moving the decimal point — no float round-trip, so the value stays exact. PG treats such literals as NUMERIC; the digit-count caps mirror PG’s numeric format limits (“value overflows numeric format”).