Json module

json_float

procedureextensionSource

NaN and infinities have no JSON spelling and become null.

Example↗
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

Returns

See also