Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::half Struct Reference

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
 

Detailed Description

IEEE 754 16-bit half-precision floating point number.

Member Function Documentation

◆ from_float()

static half rerun::half::from_float ( float  value)
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.


The documentation for this struct was generated from the following file: