package float16

import "github.com/apache/arrow/go/v11/arrow/float16"

Index

Types

type Num

type Num struct {
	// contains filtered or unexported fields
}

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

See https://en.wikipedia.org/wiki/Half-precision_floating-point_format 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

Source Files

float16.go

Version
v11.0.0 (latest)
Published
Jan 18, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
1 hour ago

Tools for package owners.