number

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInt

func DefaultInt(v, dv int) int

DefaultInt return default value if v is zero

func Div

func Div(a, b int) int

Div return a/b

func HashCode

func HashCode(s string) int

HashCode

func Max

func Max(a, b int) int

Max return max number

func Min

func Min(a, b int) int

Min return min number

func Round

func Round(f float64) int

Round rounding-off method

Types

type FloatValue

type FloatValue float64

FloatValue

func (FloatValue) Int

func (f FloatValue) Int() int

Int return integer

func (FloatValue) Round

func (f FloatValue) Round() int

Round rounding-off method

Jump to

Keyboard shortcuts

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