Encode a floating-point value as JSON onto stream.
Declared in <baljsn_printutil.h>
template<class TYPE>
static
int
printFloatingPoint(
std::ostream& stream,
TYPE value,
EncoderOptions const* options);
Encode the specified floating point value into JSON and output the result to the specified stream. Use the optionally-specified options to decide how value is encoded.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | output stream for JSON |
| value | floating-point value to encode |
| options | encoding options; null uses defaults |