Documentation
¶
Index ¶
- func Average(x []float64) float64
- func BytesToFloat64(in []byte) (float64, error)
- func Fibonacci(n, max int) int
- func Float64ToBytes(in float64) []byte
- func Float64ToString(in float64) string
- func IsInt(v interface{}) bool
- func Max[...](args ...T) T
- func Median(x []float64) float64
- func ParseFloat32(str string) (float32, error)
- func ParseFloat64(str string) (float64, error)
- func RoundFloat64(val float64, dec int) float64
- func StringToFloat64(in string) (float64, error)
- func StringToInt(in string) (int, error)
- func StringToInt64(in string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat64 ¶
BytesToFloat64 converts input slice of bytes value into output float64 value.
func Float64ToBytes ¶
Float64ToBytes converts input float64 value into output slice of bytes value.
func Float64ToString ¶
Float64ToString converts input float64 value into output string value.
func Max ¶
func Max[T int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64](args ...T) T
Max pick the greatest value from primitive arguments
func StringToFloat64 ¶
StringToFloat64 converts input string value into output float64 value.
func StringToInt ¶
StringToInt converts input string value into output int value.
func StringToInt64 ¶ added in v0.1.1
StringToInt64 converts input string value into output int64 value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.