Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncreaseUintByPercent ¶
IncreaseUintByPercent is a function that increases Uint by a percentage. Example: IncreaseUintByPercent(4000, 20) = 4000 * 1,2 = 4800 Returns result and increase amount.
func Percentage ¶
Percentage calculates the percentage of A over B.
func SliceMedianValue ¶
func SliceMedianValue[T number](items []T, inPlace bool) T
SliceMedianValue returns the median value of the given slice. Returns 0 for an empty slice. If inPlace is true, the input slice will be sorted in place. Otherwise, a copy of the input slice will be sorted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.