math

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloorDiv

func FloorDiv(x, y int64) int64

func FloorDivBigInt added in v0.9.0

func FloorDivBigInt(x, y *big.Int) *big.Int

func Fraction

func Fraction(value, numerator, denominator int64) (int64, error)

func Log

func Log(base, exponent int64, baseScale, exponentScale, resultScale int, mode decimal.RoundingMode) (int64, error)

func LogBigInt added in v0.9.0

func LogBigInt(base, exponent *big.Int, baseScale, exponentScale, resultScale int, mode decimal.RoundingMode) (*big.Int, error)

func ModDivision

func ModDivision(x, y int64) int64

func Pow

func Pow(base, exponent int64, baseScale, exponentScale, resultScale int, mode decimal.RoundingMode) (int64, error)

func PowBigInt added in v0.9.0

func PowBigInt(base, exponent *big.Int, baseScale, exponentScale, resultScale int, mode decimal.RoundingMode) (*big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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