toJSON

convert a floating point value to a JSONValue

Examples

Serialize a floating-point value.

assert(4.1f.toJSON == JSONValue(4.1f));

Meta