The half precision floating point type.
The only operations are:
It operates in an analogous manner to shorts, which are converted to ints before performing any operations, and explicitly cast back to shorts. The half float is considered essentially a storage type, not a computation type.
The only rounding mode currently supported is Round To Nearest. The exceptions OVERFLOW, UNDERFLOW and INEXACT are not thrown.
HalfFloat h = hf!27.2f; HalfFloat j = cast(HalfFloat)( hf!3.5f + hf!5 ); HalfFloat f = HalfFloat(0.0f);
See Implementation
The half precision floating point type.
The only operations are:
It operates in an analogous manner to shorts, which are converted to ints before performing any operations, and explicitly cast back to shorts. The half float is considered essentially a storage type, not a computation type.