[#BloombergLP-baljsn-PrintUtil-printFloatingPoint] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/PrintUtil.adoc[PrintUtil]::printFloatingPoint :relfileprefix: ../../../ :mrdocs: Encode a floating‐point `value` as JSON onto `stream`. == Synopsis Declared in `<baljsn_printutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static int printFloatingPoint( std::ostream& stream, TYPE value, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const* options); ---- == Description 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. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream for JSON | *value* | floating‐point value to encode | *options* | encoding options; null uses defaults |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#