Documentation ¶
Index ¶
- func DivideCeil(count int64, pageSize int64) int64
- func IsSignedZero(f float64) bool
- func Limit(v, lower, upper float64) float64
- func Max(a, b int64) int64
- func Min(a, b int64) int64
- func NonZero(a, b int64, c ...int64) int64
- func Round(f float64) float64
- func RoundPlus(f float64, precision int) float64
- type Byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DivideCeil ¶
DivideCeil divides two integers and rounds up, rather than down (which is what happens when you do int64/int64).
func IsSignedZero ¶
IsSignedZero checks if this number is a signed zero (i.e. -0, instead of +0).
func NonZero ¶ added in v1.4.2
NonZero returns the first argument that is not 0. It will return 0 if all arguments are 0.
Types ¶
Click to show internal directories.
Click to hide internal directories.