pub fn py_float(v: f64) -> Value
Wrap a float the way Python’s json module would write it: an ordinary number when finite, a bare token when not.