NaN and infinities have no JSON spelling and become null.
assert(json_float(1.5).text == "1.5");
zero := 0.0;
assert(json_float(zero / zero).kind == .NULL);json_float :: (value: float64) -> Json_Value
Parameters
- value: float64
NaN and infinities have no JSON spelling and become null.
assert(json_float(1.5).text == "1.5");
zero := 0.0;
assert(json_float(zero / zero).kind == .NULL);json_float :: (value: float64) -> Json_Value