num

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyStringSlice

func EmptyStringSlice(length int) []string

func ExcelGenerateCoords

func ExcelGenerateCoords(ctx context.Context, coordinateRange string) ([]string, error)

i.e. D10:D13 -> [D10, D11, D12, D13]

func RandomString

func RandomString(n int) string

Generate random string with n length

func RoundingNumber

func RoundingNumber(num float64, n int) float64

Rounding given number to n decimal place

func SafeDivision

func SafeDivision(numerator float64, denominator float64, zeroValue bool) float64

/ Checks denominator in a fraction (numerator/denominator) which returns zero value or original value depends on the zeroValue

Types

This section is empty.

Jump to

Keyboard shortcuts

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