Back to

Package float16

Latest Go to latest

The latest major version is .

Published: 0 hours ago | Licenses: Apache-2.0 , BSD-2-Clause , BSD-3-Clause , BSL-1.0 , CC-BY-3.0 , CC0-1.0 , JSON , MIT , NCSA , OpenSSL , Zlib | Module:


type Num

type Num struct {
	// contains filtered or unexported fields

Num represents a half-precision floating point value (float16) stored on 16 bits.

See for more informations.

func New

func New(f float32) Num

New creates a new half-precision floating point value from the provided float32 value.

func (Num) Float32

func (f Num) Float32() float32

func (Num) String

func (f Num) String() string

func (Num) Uint16

func (f Num) Uint16() uint16

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier