|
Rerun C++ SDK
|
IEEE 754 16-bit half-precision floating point number. More...
#include <rerun/half.hpp>
Static Public Member Functions | |
| static half | from_float (float value) |
Converts a 32-bit float to a 16-bit half, rounding to nearest, ties to even. | |
Public Attributes | |
| uint16_t | f16 |
IEEE 754 16-bit half-precision floating point number.
|
inlinestatic |
Converts a 32-bit float to a 16-bit half, rounding to nearest, ties to even.
Values too large to represent become infinity, and NaN stays NaN.