num

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatToFixed

func FloatToFixed(v float64, step float64) float64

func FloatToString

func FloatToString(v float64, step float64) string

func Panic

func Panic(err error)

func ParseFloat64

func ParseFloat64(a any) (f float64, err error)

func ParseInt

func ParseInt[T Integer](v any) (n T, err error)

func ToFloat64

func ToFloat64(a any) float64

func ToInt

func ToInt[T Integer](v any) T

Types

type Integer

type Integer interface {
	Signed | Unsigned
}

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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