math

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncreaseUintByPercent

func IncreaseUintByPercent(amount math.Uint, percent uint64) (math.Uint, math.Uint)

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

func Percentage(a, b *big.Int) *big.Float

Percentage calculates the percentage of A over B.

Types

This section is empty.

Jump to

Keyboard shortcuts

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