math8

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package math8 implements canonical operations using float8 type. It implements functionally correct library but slow ops.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFloat32

func ToFloat32(f8 Float8) float32

Return float32 value from Float8

Types

type Float8

type Float8 = uint8

func Add

func Add(a, b Float8) Float8

Add two Float8

func Div

func Div(a, b Float8) Float8

Divide float8

func Mul

func Mul(a, b Float8) Float8

Multiply Float8

func Sub

func Sub(a, b Float8) Float8

Subtract two Float8

func ToFloat8

func ToFloat8(f32 float32) Float8

Return Float8 value from float32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL