Load the JSON representation of a floating-point value into json.
Declared in <baljsn_jsonformatter.h>
template<class TYPE>
static
int
setFloatingPointToJson(
bdljsn::Json* json,
TYPE const& value,
EncoderOptions const* options);
Optionally use the specified options (notably encodeInfAndNaNAsStrings). Return 0 on success and a non-zero value otherwise.
0 on success and a non-zero value otherwise
| Name | Description |
|---|---|
| json | JSON object to receive the encoded value |
| value | floating-point value to encode |
| options | optional encoding options; null uses defaults |