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

Decode a BER real value into a `double`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getDoubleValue(
    double* value,
    std::streambuf* streamBuf,
    int length);
----

== Description

bytes as the contents octets of a BER&hyphen;encoded real value according to the specification&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if `length` bytes are successfully read from the input sequence of the `streamBuf` without the read position becoming unavailable, and the bytes read contain a valid representation of the contents octets of a real value according to the specification&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| destination for the decoded value
| *streamBuf*
| input stream buffer
| *length*
| number of content octets
|===


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