units

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFloat

func ConvertFloat(from *big.Float, fromUnit, toUnit Unit) *big.Float

func ConvertInt

func ConvertInt(from *big.Int, fromUnit, toUnit Unit) *big.Float

Types

type Unit

type Unit int
const (
	Wei Unit = iota * 3
	Kwei
	Mwei
	Gwei
	Szabo
	Finney
	Ether
	Kether
	Mether
	Gether
	Tether
)

func Atou

func Atou(s string) (Unit, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL