calcs

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apr2Apy

func Apr2Apy[T types.Number](apr T) (apy float64)

func Apr2ApyWithCompoundTimes

func Apr2ApyWithCompoundTimes[T types.Number, S types.Number](apr T, compoundTimes S) (apy float64)

func Apy2Apr

func Apy2Apr[T types.Number](apy T) (apr float64)

func Apy2AprWithCompoundTimes

func Apy2AprWithCompoundTimes[T types.Number, S types.Number](apy T, compoundTimes S) (apr float64)

func CryptoRandBelow

func CryptoRandBelow(length int) int

Real random/ Crypto random.

func CryptoRandBetween

func CryptoRandBetween(start int, end int, times int) []int

Choose "times" different numbers between "start" and "end".

func MathRandBelow

func MathRandBelow(length int) int

Random from timestamp.

func Max

func Max[T types.OrderedNumber](x, y T) T

func Min

func Min[T types.OrderedNumber](x, y T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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