Imath
<navlinks>
<page>

# half

    #include <Imath/half.h>

`half` is a 16-bit floating point number. See Floating Point Representation for an explanation of the representation.

See C-language half-float Conversion for C-language functions for conversion between `half` and `float`. Also, see Build-time half-float Conversion Configuration Options for information about building Imath with support for the F16C SSE instruction set.

Example:

    #include <Imath/half.h>
    #include <math.h>

    void
    half_example()
    {
        half a (3.5);
        float b (a + sqrt (a));
        a += b;
        b += a;
        b = a + 7;
    }

half

- The half Class
- half Limits
- C-language half-float Conversion
- Build-time half-float Conversion Configuration Options
- Floating Point Representation

</page>