[#BloombergLP-bslx-MarshallingUtil-getFloat32]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/MarshallingUtil.adoc[MarshallingUtil]::getFloat32
:relfileprefix: ../../../
:mrdocs:

Load a four&hyphen;byte IEEE float from the specified `buffer`&period;

== Synopsis

Declared in `&lt;bslx&lowbar;marshallingutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
getFloat32(
    float* variable,
    char const* buffer);
----

== Description

Load into the specified `variable` the four&hyphen;byte IEEE single&hyphen;precision floating&hyphen;point number (in host byte order) comprised of the initial four bytes of the specified `buffer` (in network byte order)&period; The behavior is undefined unless `buffer` has sufficient contents&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *variable*
| destination for the host&hyphen;order four&hyphen;byte IEEE float
| *buffer*
| source buffer in network byte order
|===


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