Skip to main content

Module float16

Module float16 

Source
Expand description

IEEE 754 half-precision (binary16) floating-point type.

This module provides a float16 type that represents IEEE 754 binary16 format (16-bit floating point). The type is a transparent wrapper around u16 and provides IEEE-compliant conversions to/from f32, classification methods, and arithmetic operations.

Structsยง

float16
IEEE 754 binary16 (half-precision) floating-point type.