fn format_hex_float(val: f64) -> String
Format a f64 as a C-style hex float string (matching R’s %a format).
Produces strings like “0x1.999999999999ap-4” for 0.1.