fn format_fp8_value(v: f64) -> String
Format an f64 value as a string for FP8 display.
Handles special cases: NaN, infinity (with sign), and signed zero. Normal values use the shortest representation (decimal or scientific).