Write a four‐byte IEEE single‐precision value to this stream.

Synopsis

Declared in <bslx_byteoutstream.h>

ByteOutStream&
putFloat32(float value);

Description

Write to this stream the four‐byte IEEE single‐precision floating‐point number (in network byte order) comprised of the most‐significant four bytes of the specified value (in host byte order), and return a reference to this stream. If this stream is initially invalid, this operation has no effect. Note that for non‐conforming platforms, this operation may be lossy.

Return Value

a reference to this stream

Parameters

Name

Description

value

floating‐point value to write

Created with MrDocs