iotex-core: github.com/iotexproject/iotex-core/pkg/unit Index | Files

package unit

import "github.com/iotexproject/iotex-core/pkg/unit"

Index

Package Files

unit.go

Constants

const (
    // Rau is the smallest non-fungible token unit
    Rau int64 = 1
    // KRau is 1000 Rau
    KRau = Rau * 1000
    // MRau is 1000 KRau
    MRau = KRau * 1000
    // GRau is 1000 MRau
    GRau = MRau * 1000
    // Qev is 1000 GRau
    Qev = GRau * 1000
    // Jin is 1000 Qev
    Jin = Qev * 1000
    // Iotx is 1000 Jin, which should be fit into int64
    Iotx = Jin * 1000
)

func ConvertIotxToRau Uses

func ConvertIotxToRau(iotx int64) *big.Int

ConvertIotxToRau converts an Iotx to Rau

Package unit imports 1 packages (graph) and is imported by 7 packages. Updated 2019-07-27. Refresh now. Tools for package owners.