bignum

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDecimal

func AddDecimal(i *big.Int, d int, p int64)

func CutDecimal

func CutDecimal(i *big.Int, d int, p int) string

func DecimalExp

func DecimalExp(dec string, exp int) string

func FloatAddDecimal

func FloatAddDecimal(f *big.Float, d int, p int64) *big.Int

func HandleAddDecimal

func HandleAddDecimal(value string, decimal int) (*big.Int, bool)

func HandleDecimal

func HandleDecimal(amount *big.Int, decimals int) string

func HandleDecimalStr

func HandleDecimalStr(amount string, decimals int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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