github.com/zerfoo/float16
Package float16 implements the 16-bit floating point data type (IEEE 754-2008). This implementation provides conversion between float16 and other floating-point types (float32 and float64) with support for various rounding modes and error handling. The float16 type supports all IEEE 754-2008 special values: When converting to higher-precision types (float32/float64), subnormal float16 values are preserved. However, when converting back from higher-precision types to float16, subnormal values may be rounded to the nearest representable normal float16 value. This behavior is consistent with many hardware implementations that handle subnormals in a similar way for performance reasons. The following rounding modes are supported for conversions: Conversion functions with a ConversionMode parameter can return errors for: See: http://en.wikipedia.org/wiki/Half-precision_floating-point_format
proxy.golang.org
v0.2.1
26 days ago
3
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/zerfoo/float16
spec |
| License | Apache-2.0 |
| Namespace | github.com/zerfoo |
| First Release | 8 months ago |
| Last Synced | 24 days ago |
Repository
| Stars | 0 on GitHub |
| Forks | 1 on GitHub |