utils

package
v0.0.0-...-72e02b7 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcGrowthPercentage

func CalcGrowthPercentage(a1, a2 float64) float64

计算增长率

func CalcIntGrowthPercentage

func CalcIntGrowthPercentage(a1, a2 int) float64

计算增长率

func CoalesceFloat64

func CoalesceFloat64(list ...float64) float64

返回第一个不为0的int

func DivideFloat

func DivideFloat(a float64, b float64) float64

func DivideFloatWithInt

func DivideFloatWithInt(a float64, b int) float64

func DivideInt

func DivideInt(a int, b int) float64

func DivideIntWithFloat

func DivideIntWithFloat(a int, b float64) float64

func Fixed

func Fixed(f float64, precision int) float64

保留precision位小数

func Fixed2

func Fixed2(f float64) float64

func Fixed4

func Fixed4(f float64) float64

func MaxInt

func MaxInt(a, b int) int

func MinInt

func MinInt(a, b int) int

func StringSliceIn

func StringSliceIn(element string, sliceInfo []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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