[#BloombergLP-balber-BerUtil_FloatingPointImpUtil-putDoubleValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_FloatingPointImpUtil.adoc[BerUtil&lowbar;FloatingPointImpUtil]::putDoubleValue
:relfileprefix: ../../../
:mrdocs:

Encode a `double` as BER length and contents octets&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
putDoubleValue(
    std::streambuf* streamBuf,
    double value,
    xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options = 0);
----

== Description

specified `streamBuf`&period; Optionally specify `options`, which will indicate whether `&hyphen;0&period;0` will be preserved or encoded as `&plus;0&period;0`&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if all bytes corresponding to the length and contents octets are written to the `streamBuf` without the write position becoming unavailable&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| output stream buffer
| *value*
| value to encode
| *options*
| encoder options (0 for defaults)
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
