../libs/float16/float16

  Source   Edit

Types

Denormals = enum
  Ignore, SetZero, Calculate
  Source   Edit
Float16 = distinct uint16
  Source   Edit

Procs

proc toFloat16[T](n: T; denormals: static[Denormals] = Ignore;
                  clamp: static[bool] = false): Float16
  Source   Edit
proc toFloat32(n: Float16; denormals: static[Denormals] = Ignore): float32
  Source   Edit

Templates

template `$`(n: Float16): string
  Source   Edit
template toFloat(n: Float16; denormals: static[Denormals] = Ignore): float
  Source   Edit
template toFloat64(n: Float16; denormals: static[Denormals] = Ignore): float64
  Source   Edit