Skip to main content

float_text

Function float_text 

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

The engine’s one float rendering policy: NaN, Infinity, -Infinity, otherwise Rust’s shortest round-tripping decimal with a .0 appended when Display emits no fractional part (so 1.0 never reads as the integer 1), never scientific notation. The engine’s own text forms — the relate_core::Value display/literal, the Query API v2 Float encoding and EWKT point text — read this one function. The ADR-0280 JSON wire (wire::json_f64, through CypherValue’s Display) keeps that ADR’s own Inf/-Inf spelling by decision, so this is not a claim about it.