number

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 1 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Zero      = uint256.NewInt(0)
	Number_1  = uint256.NewInt(1)
	Number_2  = uint256.NewInt(2)
	Number_3  = uint256.NewInt(3)
	Number_4  = uint256.NewInt(4)
	Number_5  = uint256.NewInt(5)
	Number_6  = uint256.NewInt(6)
	Number_7  = uint256.NewInt(7)
	Number_8  = uint256.NewInt(8)
	Number_9  = uint256.NewInt(9)
	Number_10 = uint256.NewInt(10)

	Number_18 = uint256.NewInt(18)

	Number_10000 = uint256.NewInt(10000)

	Number_1e18 = new(uint256.Int).Exp(Number_10, Number_18)
)

Functions

func NewUint256

func NewUint256(s string) (res *uint256.Int)

func TenPow

func TenPow(decimals uint8) *uint256.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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