math

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decimal added in v1.0.4

func Decimal(v float64, n int) float64

Decimal reserve n decimal

func MaxFloat32

func MaxFloat32(x, y float32) float32

MaxFloat32 get max float32

func MaxFloat64

func MaxFloat64(x, y float64) float64

MaxFloat64 get max float64

func MaxInt

func MaxInt(x, y int) int

MaxInt get max int

func MaxInt16

func MaxInt16(x, y int16) int16

MaxInt16 get max int16

func MaxInt32

func MaxInt32(x, y int32) int32

MaxInt32 get max int32

func MaxInt64

func MaxInt64(x, y int64) int64

MaxInt64 get max int64

func MaxInt8

func MaxInt8(x, y int8) int8

MaxInt8 get max int8

func MinFloat32

func MinFloat32(x, y float32) float32

MinFloat32 get min float32

func MinFloat64

func MinFloat64(x, y float64) float64

MinFloat64 get min float64

func MinInt

func MinInt(x, y int) int

MinInt get min int

func MinInt16

func MinInt16(x, y int16) int16

MinInt16 get max int16

func MinInt32

func MinInt32(x, y int32) int32

MinInt32 get min int32

func MinInt64

func MinInt64(x, y int64) int64

MinInt64 get min int64

func MinInt8

func MinInt8(x, y int8) int8

MinInt8 get min int8

func PowInt added in v1.0.6

func PowInt(x, y int) int

PowInt x^y

func PowInt64 added in v1.0.6

func PowInt64(x, y int64) int64

PowInt64 x^y

Types

This section is empty.

Jump to

Keyboard shortcuts

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