Write a single‐precision floating‐point value to this stream.
Synopsis
Declared in <bslx_testoutstream.h>
TestOutStream&
putFloat32(float value);
Description
Write to this stream the one‐byte type indicator for a four‐byte single‐precision floating‐point number and 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. If the next output operation has been set to be marked invalid (see makeNextInvalid), reset this marking and emit the invalid indicator instead of the type indicator. 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