num64

package
v0.0.0-...-059b1e2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	Uint64 = iota
	Int64
	Float64
)

Data types for Numeric64

Variables

This section is empty.

Functions

This section is empty.

Types

type Numeric64

type Numeric64 struct {
	Type int
	// contains filtered or unexported fields
}

Numeric64 is an internal datatype used to generalize an eventStream to hold any 64 bit numeric value. This is a performance optimation. An interface{} would require additional dynamic allocation of heap objects.

func Float64FromUint64

func Float64FromUint64(v uint64) Numeric64

Float64FromUint64 creates a Float64 Numeric64 from a uint64 value.

func FromFloat64

func FromFloat64(v float64) Numeric64

FromFloat64 creates a Numeric64 from a Float64

func FromInt64

func FromInt64(v int64) Numeric64

FromInt64 creates Numeric64 from an int64

func FromUint64

func FromUint64(v uint64) Numeric64

FromUint64 creates a Numeric64 from a uint64

func (Numeric64) Float64

func (n Numeric64) Float64() float64

Float64 returns the 64-bit value as a float64

func (Numeric64) Int64

func (n Numeric64) Int64() int64

Int64 returns the 64-bit values as an int64

func (Numeric64) Uint64

func (n Numeric64) Uint64() uint64

Uint64 returns the 64-bit values as a uint64

Jump to

Keyboard shortcuts

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