Documentation ¶
Overview ¶
amountdecimal 【package name:】Amount Decimal 【auth:】jishulang.com
amountdecimal 【包名:】金额的高精度计算类库 【作者:】jishulang.com
Index ¶
- Constants
- Variables
- func BigIntActualAmount(amount *big.Int, decimalOrCoin interface{}) (string, error)
- type AmountDecimal
- func New(amount interface{}) *AmountDecimal
- func NewBigInt(amount *big.Int) *AmountDecimal
- func NewBigRat(amount *big.Rat) *AmountDecimal
- func NewFloat32(amount float32) *AmountDecimal
- func NewFloat64(amount float64) *AmountDecimal
- func NewInt(amount int) *AmountDecimal
- func NewInt16(amount int16) *AmountDecimal
- func NewInt32(amount int32) *AmountDecimal
- func NewInt64(amount int64) *AmountDecimal
- func NewInt8(amount int8) *AmountDecimal
- func NewJsonNumber(amount json.Number) *AmountDecimal
- func NewString(amount string) *AmountDecimal
- func NewUint(amount uint) *AmountDecimal
- func NewUint16(amount uint16) *AmountDecimal
- func NewUint32(amount uint32) *AmountDecimal
- func NewUint64(amount uint64) *AmountDecimal
- func NewUint8(amount uint8) *AmountDecimal
- func (c *AmountDecimal) Add(amounts ...interface{}) *AmountDecimal
- func (c *AmountDecimal) AddBigInt(amounts ...*big.Int) *AmountDecimal
- func (c *AmountDecimal) AddBigRat(amounts ...*big.Rat) *AmountDecimal
- func (c *AmountDecimal) AddFloat32(amounts ...float32) *AmountDecimal
- func (c *AmountDecimal) AddFloat64(amounts ...float64) *AmountDecimal
- func (c *AmountDecimal) AddInt(amounts ...int) *AmountDecimal
- func (c *AmountDecimal) AddInt16(amounts ...int16) *AmountDecimal
- func (c *AmountDecimal) AddInt32(amounts ...int32) *AmountDecimal
- func (c *AmountDecimal) AddInt64(amounts ...int64) *AmountDecimal
- func (c *AmountDecimal) AddInt8(amounts ...int8) *AmountDecimal
- func (c *AmountDecimal) AddJsonNumber(amounts ...json.Number) *AmountDecimal
- func (c *AmountDecimal) AddString(amounts ...string) *AmountDecimal
- func (c *AmountDecimal) AddUint(amounts ...uint) *AmountDecimal
- func (c *AmountDecimal) AddUint16(amounts ...uint16) *AmountDecimal
- func (c *AmountDecimal) AddUint32(amounts ...uint32) *AmountDecimal
- func (c *AmountDecimal) AddUint64(amounts ...uint64) *AmountDecimal
- func (c *AmountDecimal) AddUint8(amounts ...uint8) *AmountDecimal
- func (c *AmountDecimal) Div(amounts ...interface{}) *AmountDecimal
- func (c *AmountDecimal) DivBigInt(amounts ...*big.Int) *AmountDecimal
- func (c *AmountDecimal) DivBigRat(amounts ...*big.Rat) *AmountDecimal
- func (c *AmountDecimal) DivFloat32(amounts ...float32) *AmountDecimal
- func (c *AmountDecimal) DivFloat64(amounts ...float64) *AmountDecimal
- func (c *AmountDecimal) DivInt(amounts ...int) *AmountDecimal
- func (c *AmountDecimal) DivInt16(amounts ...int16) *AmountDecimal
- func (c *AmountDecimal) DivInt32(amounts ...int32) *AmountDecimal
- func (c *AmountDecimal) DivInt64(amounts ...int64) *AmountDecimal
- func (c *AmountDecimal) DivInt8(amounts ...int8) *AmountDecimal
- func (c *AmountDecimal) DivJsonNumber(amounts ...json.Number) *AmountDecimal
- func (c *AmountDecimal) DivString(amounts ...string) *AmountDecimal
- func (c *AmountDecimal) DivUint(amounts ...uint) *AmountDecimal
- func (c *AmountDecimal) DivUint16(amounts ...uint16) *AmountDecimal
- func (c *AmountDecimal) DivUint32(amounts ...uint32) *AmountDecimal
- func (c *AmountDecimal) DivUint64(amounts ...uint64) *AmountDecimal
- func (c *AmountDecimal) DivUint8(amounts ...uint8) *AmountDecimal
- func (c *AmountDecimal) Mul(amounts ...interface{}) *AmountDecimal
- func (c *AmountDecimal) MulBigInt(amounts ...*big.Int) *AmountDecimal
- func (c *AmountDecimal) MulBigRat(amounts ...*big.Rat) *AmountDecimal
- func (c *AmountDecimal) MulFloat32(amounts ...float32) *AmountDecimal
- func (c *AmountDecimal) MulFloat64(amounts ...float64) *AmountDecimal
- func (c *AmountDecimal) MulInt(amounts ...int) *AmountDecimal
- func (c *AmountDecimal) MulInt16(amounts ...int16) *AmountDecimal
- func (c *AmountDecimal) MulInt32(amounts ...int32) *AmountDecimal
- func (c *AmountDecimal) MulInt64(amounts ...int64) *AmountDecimal
- func (c *AmountDecimal) MulInt8(amounts ...int8) *AmountDecimal
- func (c *AmountDecimal) MulJsonNumber(amounts ...json.Number) *AmountDecimal
- func (c *AmountDecimal) MulString(amounts ...string) *AmountDecimal
- func (c *AmountDecimal) MulUint(amounts ...uint) *AmountDecimal
- func (c *AmountDecimal) MulUint16(amounts ...uint16) *AmountDecimal
- func (c *AmountDecimal) MulUint32(amounts ...uint32) *AmountDecimal
- func (c *AmountDecimal) MulUint64(amounts ...uint64) *AmountDecimal
- func (c *AmountDecimal) MulUint8(amounts ...uint8) *AmountDecimal
- func (c *AmountDecimal) Sub(amounts ...interface{}) *AmountDecimal
- func (c *AmountDecimal) SubBigInt(amounts ...*big.Int) *AmountDecimal
- func (c *AmountDecimal) SubBigRat(amounts ...*big.Rat) *AmountDecimal
- func (c *AmountDecimal) SubFloat32(amounts ...float32) *AmountDecimal
- func (c *AmountDecimal) SubFloat64(amounts ...float64) *AmountDecimal
- func (c *AmountDecimal) SubInt(amounts ...int) *AmountDecimal
- func (c *AmountDecimal) SubInt16(amounts ...int16) *AmountDecimal
- func (c *AmountDecimal) SubInt32(amounts ...int32) *AmountDecimal
- func (c *AmountDecimal) SubInt64(amounts ...int64) *AmountDecimal
- func (c *AmountDecimal) SubInt8(amounts ...int8) *AmountDecimal
- func (c *AmountDecimal) SubJsonNumber(amounts ...json.Number) *AmountDecimal
- func (c *AmountDecimal) SubString(amounts ...string) *AmountDecimal
- func (c *AmountDecimal) SubUint(amounts ...uint) *AmountDecimal
- func (c *AmountDecimal) SubUint16(amounts ...uint16) *AmountDecimal
- func (c *AmountDecimal) SubUint32(amounts ...uint32) *AmountDecimal
- func (c *AmountDecimal) SubUint64(amounts ...uint64) *AmountDecimal
- func (c *AmountDecimal) SubUint8(amounts ...uint8) *AmountDecimal
- func (c *AmountDecimal) ToBigInt(decimalOrCoin interface{}) (*big.Int, error)
- func (c *AmountDecimal) ToBigRat() (*big.Rat, error)
- func (c *AmountDecimal) ToJsonNumber(decimalOrCoin interface{}) (amountJsonNumber json.Number, err error)
- func (c *AmountDecimal) ToString(decimalOrCoin interface{}) (amountStr string, err error)
- type CoinInfo
Constants ¶
const ( COIN_BTC = "BTC" // 比特币(Bitcoin) COIN_BTC_USDT = "BTC_USDT" // COIN_ETH = "ETH" // 以太坊(Ethereum) COIN_ETH_USDT = "ETH_USDT" // COIN_ONT_ONT2 = "ONT_ONT2" // COIN_ONT_ONG2 = "ONT_ONG2" // COIN_TONT_ONG2 = "TONT_ONG2" // COIN_TONT_ONT2 = "TONT_ONT2" // COIN_TRON = "TRON" // 波场币 COIN_TRX = "TRX" // 波场币 COIN_TETH = "TETH" // COIN_TETH_CTT = "TETH_CTT" // COIN_XLM = "XLM" // 恒星币 COIN_XTN = "XTN" // COIN_XRP = "XRP" // 瑞波币(Ripple) COIN_EOS = "VDS" // 柚子(Vollar) COIN_EBCH = "EBCH" // 电子比特币现金(eBitcoinCash) COIN_BCH = "BCH" // 比特现金(Bitcoin Cash) COIN_ETC = "ETC" // 以太坊經典(EthereumClassic) COIN_DASH = "DASH" // 达世币(DASH) COIN_QTUM = "QTUM" // 量子鏈幣(QTUM) COIN_ZEC = "ZEC" // 大零币(ZCash) COIN_VDS = "VDS" // Vollar(Vollar) COIN_UNI = "UNI" // COIN_XMR = "XMR" // 门罗币 COIN_OKB = "OKB" // OK币 COIN_USDT = "USDT" // 泰达币 COIN_USDTBEP20 = "USDTBEP20" // COIN_USDTC = "USDTC" // COIN_USDTKIP20 = "USDTKIP20" // COIN_USDTT = "USDTT" // COIN_INCH = "INCH" // COIN_1 = "1" // COIN_520 = "520" // COIN_520GVK = "520GVK" // COIN_AAT = "AAT" // COIN_AAT1 = "AAT1" // COIN_AAVE = "AAVE" // COIN_AC = "AC" // COIN_ACA = "ACA" // COIN_ADABEP20 = "ADABEP20" // COIN_ADC = "ADC" // COIN_ADF = "ADF" // COIN_ADS = "ADS" // COIN_ADT = "ADT" // COIN_AE = "AE" // COIN_AEN = "AEN" // COIN_AEY = "AEY" // COIN_AGC = "AGC" // COIN_AGI = "AGI" // COIN_AGL = "AGL" // COIN_AIAC = "AIAC" // COIN_AIBTBEP20 = "AIBTBEP20" // COIN_AIDOL = "AIDOL" // COIN_AIMMBEP20 = "AIMMBEP20" // COIN_AIOT2BEP20 = "AIOT2BEP20" // COIN_AIOT3BEP20 = "AIOT3BEP20" // COIN_AIOTBEP20 = "AIOTBEP20" // COIN_AJS = "AJS" // COIN_ALC = "ALC" // COIN_ALGO = "ALGO" // COIN_AMCTRC20 = "AMCTRC20" // COIN_ANT = "ANT" // COIN_AQP = "AQP" // COIN_ATB = "ATB" // COIN_ATS_6513 = "ATS-6513" // COIN_AUD = "AUD" // COIN_AUKCTRC20 = "AUKCTRC20" // COIN_AUKTRC20 = "AUKTRC20" // COIN_AXS = "AXS" // COIN_AYABEP20 = "AYABEP20" // COIN_BAL = "BAL" // COIN_BAMBOOKIP20 = "BAMBOOKIP20" // COIN_BAND = "BAND" // COIN_BAT = "BAT" // COIN_BATT = "BATT" // COIN_BBTC = "BBTC" // COIN_BCAB = "BCAB" // COIN_BDGO = "BDGO" // COIN_BEDR = "BEDR" // COIN_BENEFIT = "BENEFIT" // COIN_BFC2BEP20 = "BFC2BEP20" // COIN_BFCBEP20 = "BFCBEP20" // COIN_BHB = "BHB" // COIN_BHTX = "BHTX" // COIN_BIC = "BIC" // COIN_BICTRC20 = "BICTRC20" // COIN_BIK = "BIK" // COIN_BIM = "BIM" // COIN_BITCHRC20 = "BITCHRC20" // COIN_BJ = "BJ" // COIN_BLC = "BLC" // COIN_BLCC = "BLCC" // COIN_BLN = "BLN" // COIN_BNB = "BNB" // COIN_BNC = "BNC" // COIN_BNEX = "BNEX" // COIN_BOM = "BOM" // COIN_BOX = "BOX" // COIN_BQE = "BQE" // COIN_BQG = "BQG" // COIN_BS3 = "BS3" // COIN_BSC = "BSC" // COIN_BT = "BT" // COIN_BTA = "BTA" // COIN_BTBB = "BTBB" // COIN_BTCL = "BTCL" // COIN_BTCM = "BTCM" // COIN_BTCP = "BTCP" // COIN_BTT = "BTT" // COIN_BTXY = "BTXY" // COIN_BTYX = "BTYX" // COIN_BUSD = "BUSD" // COIN_BXB = "BXB" // COIN_BYB = "BYB" // COIN_BYQ = "BYQ" // COIN_CAC = "CAC" // COIN_CAG = "CAG" // COIN_CAT = "CAT" // COIN_CB = "CB" // COIN_CC = "CC" // COIN_CCT = "CCT" // COIN_CCTRC20 = "CCTRC20" // COIN_CELR = "CELR" // COIN_CEZBEP20 = "CEZBEP20" // COIN_CFDBEP20 = "CFDBEP20" // COIN_CGC = "CGC" // COIN_CHET = "CHET" // COIN_CHP = "CHP" // COIN_CHTBEP20 = "CHTBEP20" // COIN_CHZ = "CHZ" // COIN_CIPC = "CIPC" // COIN_CJZ = "CJZ" // COIN_CLY = "CLY" // COIN_CMC = "CMC" // COIN_CMONE = "CMONE" // COIN_CMTBEP20 = "CMTBEP20" // COIN_CNT = "CNT" // COIN_CNTTRC20 = "CNTTRC20" // COIN_CNYTOKEN = "CNYTOKEN" // COIN_COB = "COB" // COIN_COC = "COC" // COIN_COMP = "COMP" // COIN_COVID = "COVID" // COIN_CPT = "CPT" // COIN_CRSTK = "CRSTK" // COIN_CRU = "CRU" // COIN_CRV = "CRV" // COIN_CSS = "CSS" // COIN_CT = "CT" // COIN_CTGC = "CTGC" // COIN_CYA = "CYA" // COIN_CYB = "CYB" // COIN_CYCBEP20 = "CYCBEP20" // COIN_CYCCOINBEP20 = "CYCCOINBEP20" // COIN_DACC = "DACC" // COIN_DAI = "DAI" // COIN_DBL = "DBL" // COIN_DCCBEP20 = "DCCBEP20" // COIN_DEB = "DEB" // COIN_DEFU = "DEFU" // COIN_DENT = "DENT" // COIN_DFT = "DFT" // COIN_DIPP = "DIPP" // COIN_DL = "DL" // COIN_DLB = "DLB" // COIN_DLKM = "DLKM" // COIN_DMTS = "DMTS" // COIN_DNN = "DNN" // COIN_DOGE = "DOGE" // COIN_DTTTRC20 = "DTTTRC20" // COIN_DUSD = "DUSD" // COIN_DYF = "DYF" // COIN_DYOO = "DYOO" // COIN_DYS = "DYS" // COIN_EDCC = "EDCC" // COIN_EDIEN = "EDIEN" // COIN_EDIENGOLD = "EDIENGOLD" // COIN_EDPC = "EDPC" // COIN_EDU = "EDU" // COIN_EGTC = "EGTC" // COIN_EKP = "EKP" // COIN_EMX = "EMX" // COIN_ENG = "ENG" // COIN_ENJ = "ENJ" // COIN_EPKBEP20 = "EPKBEP20" // COIN_ERC20_EPK = "ERC20-EPK" // COIN_ESA = "ESA" // COIN_ETF = "ETF" // COIN_ETHA = "ETHA" // ETA COIN_ETHOS = "ETHOS" // COIN_ETHS = "ETHS" // COIN_ETHSGB = "ETHSGB" // COIN_ETJ = "ETJ" // COIN_ETK = "ETK" // COIN_ETRC = "ETRC" // COIN_ETU = "ETU" // COIN_EUD = "EUD" // COIN_EURO = "EURO" // COIN_EW = "EW" // COIN_EZB = "EZB" // COIN_FANT = "FANT" // COIN_FCLT = "FCLT" // COIN_FCNHECO = "FCNHECO" // COIN_FE = "FE" // COIN_FEF = "FEF" // COIN_FET = "FET" // COIN_FFCTRC20 = "FFCTRC20" // COIN_FFT = "FFT" // COIN_FIL = "FIL" // COIN_FILBEP20 = "FILBEP20" // COIN_FIST = "FIST" // COIN_FLCSTRC20 = "FLCSTRC20" // COIN_FNTBSC20 = "FNTBSC20" // COIN_FNTTRC20 = "FNTTRC20" // COIN_FNX = "FNX" // COIN_FTE = "FTE" // COIN_FUC = "FUC" // COIN_FUCBEP20 = "FUCBEP20" // COIN_FUSD = "FUSD" // COIN_FUSDBEP20 = "FUSDBEP20" // COIN_GABA = "GABA" // COIN_GAC = "GAC" // COIN_GAMTRC20 = "GAMTRC20" // COIN_GC = "GC" // COIN_GDC = "GDC" // COIN_GDTRC20 = "GDTRC20" // COIN_GFE = "GFE" // COIN_GFTRC20 = "GFTRC20" // COIN_GHBEP20 = "GHBEP20" // COIN_GIP = "GIP" // COIN_GLDTRC20 = "GLDTRC20" // COIN_GLM = "GLM" // COIN_GLS = "GLS" // COIN_GMBEP20 = "GMBEP20" // COIN_GMT = "GMT" // COIN_GNB = "GNB" // COIN_GNO = "GNO" // COIN_GOLD = "GOLD" // COIN_GOLDENBEP20 = "GOLDENBEP20" // COIN_GOT = "GOT" // COIN_GRT = "GRT" // COIN_GSDT = "GSDT" // COIN_GSG = "GSG" // COIN_GST = "GST" // COIN_GTB = "GTB" // COIN_GTD = "GTD" // COIN_GUC = "GUC" // COIN_GUSD = "GUSD" // COIN_GUV = "GUV" // COIN_HB = "HB" // COIN_HBSV = "HBSV" // COIN_HBLRM = "HBLRM" // COIN_HE_1 = "HE-1" // COIN_HECO = "HECO" // COIN_HECOBCH = "HECOBCH" // COIN_HECOBSV = "HECOBSV" // COIN_HECOBTC = "HECOBTC" // COIN_HECOCBC = "HECOCBC" // COIN_HECODOG = "HECODOG" // COIN_HECODOT = "HECODOT" // COIN_HECOETH = "HECOETH" // COIN_HECOFIL = "HECOFIL" // COIN_HECOLTC = "HECOLTC" // COIN_HECOUSDT = "HECOUSDT" // COIN_HECOXTZ = "HECOXTZ" // COIN_HES = "HES" // COIN_HF = "HF" // COIN_HHB = "HHB" // COIN_HI = "HI" // COIN_HIBEP20 = "HIBEP20" // COIN_HKL = "HKL" // COIN_HKT = "HKT" // COIN_HNC = "HNC" // COIN_HQI = "HQI" // COIN_HSTP = "HSTP" // COIN_HSTZ = "HSTZ" // COIN_HT = "HT" // COIN_HTDD = "HTDD" // COIN_HTL = "HTL" // COIN_HTMOON = "HTMOON" // COIN_HTSGB = "HTSGB" // COIN_HTSGB1 = "HTSGB1" // COIN_HUSD = "HUSD" // COIN_HXB = "HXB" // COIN_HXC = "HXC" // COIN_HXJYTRC20 = "HXJYTRC20" // COIN_IAC = "IAC" // COIN_IAI = "IAI" // COIN_ICT = "ICT" // COIN_IEC = "IEC" // COIN_IFPCTRC20 = "IFPCTRC20" // COIN_IHT = "IHT" // COIN_IOST = "IOST" // COIN_IPCBEP20 = "IPCBEP20" // COIN_IRC = "IRC" // COIN_ITCC = "ITCC" // COIN_IXBTC = "IXBTC" // COIN_JKB = "JKB" // COIN_JKE = "JKE" // COIN_JKT = "JKT" // COIN_JLC = "JLC" // COIN_JLL = "JLL" // COIN_JRL = "JRL" // COIN_JST = "JST" // COIN_JYC = "JYC" // COIN_KD = "KD" // COIN_KFILTRC20 = "KFILTRC20" // COIN_KFR_PLUS = "KFR-PLUS" // COIN_KMP = "KMP" // COIN_KOOKTRC20 = "KOOKTRC20" // COIN_KQT = "KQT" // COIN_KT = "KT" // COIN_KTB = "KTB" // COIN_LAMP = "LAMP" // COIN_LC = "LC" // COIN_LCLTRC20 = "LCLTRC20" // COIN_LCO = "LCO" // COIN_LEAD = "LEAD" // COIN_LED = "LED" // COIN_LEND = "LEND" // COIN_LEP = "LEP" // COIN_LEP1 = "LEP1" // COIN_LET = "LET" // COIN_LINF = "LINF" // COIN_LINK = "LINK" // COIN_LLA = "LLA" // COIN_LMC = "LMC" // COIN_LOOM = "LOOM" // COIN_LOVE = "LOVE" // COIN_LRON = "LRON" // COIN_LUMI = "LUMI" // COIN_LUN = "LUN" // COIN_LYJ = "LYJ" // COIN_MACD = "MACD" // COIN_MATIC = "MATIC" // COIN_MB = "MB" // COIN_MBKTRC20 = "MBKTRC20" // COIN_MCDCTRC20 = "MCDCTRC20" // COIN_MCO = "MCO" // COIN_MCT = "MCT" // COIN_MDCP = "MDCP" // COIN_MDS = "MDS" // COIN_MDX = "MDX" // COIN_MEM = "MEM" // COIN_MEP = "MEP" // COIN_MEPC = "MEPC" // COIN_META = "META" // COIN_MFC = "MFC" // COIN_MFSBEP20 = "MFSBEP20" // COIN_MG = "MG" // COIN_MHD = "MHD" // COIN_MI = "MI" // COIN_MIC = "MIC" // COIN_MKE = "MKE" // COIN_MKR = "MKR" // COIN_MKT = "MKT" // COIN_MLB = "MLB" // COIN_MMATRC20 = "MMATRC20" // COIN_MOON = "MOON" // COIN_MOP = "MOP" // COIN_MSCOINTRC20 = "MSCOINTRC20" // COIN_MSV = "MSV" // COIN_MT = "MT" // COIN_MTAXBEP20 = "MTAXBEP20" // COIN_MTUHRC20 = "MTUHRC20" // COIN_NAC = "NAC" // COIN_NB = "NB" // COIN_NBCO = "NBCO" // COIN_NBLC = "NBLC" // COIN_NEB = "NEB" // COIN_NEST = "NEST" // COIN_NFTTRC20 = "NFTTRC20" // COIN_NMR = "NMR" // COIN_NORN = "NORN" // COIN_OGC = "OGC" // COIN_OKTPND = "OKTPND" // COIN_OLED = "OLED" // COIN_OMG = "OMG" // COIN_OMNI = "OMNI" // COIN_ONEP = "ONEP" // COIN_OSK = "OSK" // COIN_OSSBEP20 = "OSSBEP20" // COIN_PAX = "PAX" // COIN_PAXG = "PAXG" // COIN_PAY = "PAY" // COIN_PC = "PC" // COIN_PDABEP20 = "PDABEP20" // COIN_PEACHNFTTRC20 = "PEACHNFTTRC20" // COIN_PGT = "PGT" // COIN_PHABEP20 = "PHABEP20" // COIN_PINGTRC20 = "PINGTRC20" // COIN_PIPPI = "PIPPI" // COIN_PITBEP20 = "PITBEP20" // COIN_PKC = "PKC" // COIN_PKL = "PKL" // COIN_PLCTRC20 = "PLCTRC20" // COIN_PN = "PN" // COIN_POLY = "POLY" // COIN_POM = "POM" // COIN_POSCHE = "POSCHE" // COIN_POWR = "POWR" // COIN_PPT = "PPT" // COIN_PRC = "PRC" // COIN_PTD = "PTD" // COIN_PTTRC20 = "PTTRC20" // COIN_PUTTRC20 = "PUTTRC20" // COIN_QAS = "QAS" // COIN_QBATT = "QBATT" // COIN_QC = "QC" // COIN_QRC = "QRC" // COIN_QUT = "QUT" // COIN_RACABEP20 = "RACABEP20" // COIN_RBT = "RBT" // COIN_RCNR = "RCNR" // COIN_REC = "REC" // COIN_REN = "REN" // COIN_REP = "REP" // COIN_REPV2 = "REPV2" // COIN_RLC = "RLC" // COIN_ROZ = "ROZ" // COIN_SALT = "SALT" // COIN_SBC = "SBC" // COIN_SCNY = "SCNY" // COIN_SEKCC = "SEKCC" // COIN_SF = "SF" // COIN_SHI = "SHI" // COIN_SHIB = "SHIB" // COIN_SHIB2 = "SHIB2" // COIN_SLA = "SLA" // COIN_SLP = "SLP" // COIN_SLPBEP20 = "SLPBEP20" // COIN_SMMBEP20 = "SMMBEP20" // COIN_SMMTRC20 = "SMMTRC20" // COIN_SNT = "SNT" // COIN_SPAYX2TRC20 = "SPAYX2TRC20" // COIN_SPAYXTRC20 = "SPAYXTRC20" // COIN_SPT = "SPT" // COIN_SPTBEP20 = "SPTBEP20" // COIN_SQC = "SQC" // COIN_SRTBEP20 = "SRTBEP20" // COIN_STAR = "STAR" // COIN_STIBEP20 = "STIBEP20" // COIN_STN = "STN" // COIN_STORJ = "STORJ" // COIN_STS = "STS" // COIN_SUCN = "SUCN" // COIN_SUO = "SUO" // COIN_SUSHI = "SUSHI" // COIN_TALC = "TALC" // COIN_TCC = "TCC" // COIN_TCP = "TCP" // COIN_TF = "TF" // COIN_TITRC20 = "TITRC20" // COIN_TKPRO = "TKPRO" // COIN_TLB = "TLB" // COIN_TMC = "TMC" // COIN_TMD = "TMD" // COIN_TOPBULL = "TOPBULL" // COIN_TOROCUS = "TOROCUS" // COIN_TRB = "TRB" // COIN_TRCDXAN = "TRCDXAN" // COIN_TRCFFC = "TRCFFC" // COIN_TRCFFC0 = "TRCFFC0" // COIN_TRCFILC = "TRCFILC" // COIN_TRCGM = "TRCGM" // COIN_TRCHEC = "TRCHEC" // COIN_TRCHF = "TRCHF" // COIN_TRCMAT = "TRCMAT" // COIN_TRCMCDC = "TRCMCDC" // COIN_TRCTCC = "TRCTCC" // COIN_TRCTCS = "TRCTCS" // COIN_TRCUDG = "TRCUDG" // COIN_TRCUSDT = "TRCUSDT" // COIN_TRXSGB = "TRXSGB" // COIN_TTO = "TTO" // COIN_TUR = "TUR" // COIN_TUSD = "TUSD" // COIN_TWEE1 = "TWEE1" // COIN_TWEEB = "TWEEB" // COIN_TWT = "TWT" // COIN_UCC = "UCC" // COIN_UCCBEP20 = "UCCBEP20" // COIN_UCTRC20 = "UCTRC20" // COIN_UCX = "UCX" // COIN_UDGBEP20 = "UDGBEP20" // COIN_ULI = "ULI" // COIN_UMA = "UMA" // COIN_UNIC = "UNIC" // COIN_UNION = "UNION" // COIN_UPA = "UPA" // COIN_UPL = "UPL" // COIN_USDC = "USDC" // COIN_USDCTRC20 = "USDCTRC20" // COIN_USDK = "USDK" // COIN_USDM = "USDM" // COIN_VETH = "VETH" // COIN_VIDEOS = "VIDEOS" // COIN_VTS = "VTS" // COIN_WBT = "WBT" // COIN_WFDC = "WFDC" // COIN_WICC = "WICC" // COIN_WOO = "WOO" // COIN_WQZTRC = "WQZTRC" // COIN_WTS = "WTS" // COIN_WXB = "WXB" // COIN_WYC = "WYC" // COIN_XBT = "XBT" // COIN_XCBC = "XCBC" // COIN_XCQ = "XCQ" // COIN_XFACU = "XFACU" // COIN_XFG = "XFG" // COIN_XHB = "XHB" // COIN_XQE = "XQE" // COIN_XZ = "XZ" // COIN_YBD = "YBD" // COIN_YBJ = "YBJ" // COIN_YCD = "YCD" // COIN_YDE = "YDE" // COIN_YFI = "YFI" // COIN_YFII = "YFII" // COIN_YK = "YK" // COIN_YMT = "YMT" // COIN_YOCTRC20 = "YOCTRC20" // COIN_YSM = "YSM" // COIN_YSZ = "YSZ" // COIN_YXB = "YXB" // COIN_ZBY = "ZBY" // COIN_ZIL = "ZIL" // COIN_ZRX = "ZRX" // COIN_ZUSD = "ZUSD" // COIN_ZYT = "ZYT" // COIN_LTC = "LTC" // 萊特幣(Litecoin) )
const ( COIN_BTC_DECIMAL = 8 // 比特币(Bitcoin) true COIN_BTC_USDT_DECIMAL = 8 // true COIN_ETH_DECIMAL = 18 // 以太坊(Ethereum) true COIN_ETH_USDT_DECIMAL = 6 // true COIN_ONT_ONT2_DECIMAL = 9 // true COIN_ONT_ONG2_DECIMAL = 18 // true COIN_TONT_ONG2_DECIMAL = 18 // true COIN_TONT_ONT2_DECIMAL = 9 // true COIN_TRON_DECIMAL = 6 // 波场币 true COIN_TRX_DECIMAL = COIN_TRON_DECIMAL // 波场币 true COIN_TETH_DECIMAL = 18 // true COIN_TETH_CTT_DECIMAL = 18 // true COIN_XLM_DECIMAL = 7 // 恒星币 true COIN_XTN_DECIMAL = 8 // true COIN_XRP_DECIMAL = 6 // 瑞波币(Ripple) true COIN_EOS_DECIMAL = 18 // 柚子(Vollar) true COIN_EBCH_DECIMAL = 8 // 电子比特币现金(eBitcoinCash) true COIN_BCH_DECIMAL = 9 // 比特现金(Bitcoin Cash) true COIN_ETC_DECIMAL = 9 // 以太坊經典(EthereumClassic) true COIN_DASH_DECIMAL = 18 // 达世币(DASH) true COIN_QTUM_DECIMAL = 18 // 量子鏈幣(QTUM) true COIN_ZEC_DECIMAL = 9 // 大零币(ZCash) true COIN_VDS_DECIMAL = 18 // Vollar(Vollar) true COIN_UNI_DECIMAL = 6 // true COIN_XMR_DECIMAL = 18 // 门罗币 true COIN_OKB_DECIMAL = 18 // OK币 true COIN_USDT_DECIMAL = 18 // 泰达币 COIN_USDTBEP20_DECIMAL = 18 // COIN_USDTC_DECIMAL = 18 // COIN_USDTKIP20_DECIMAL = 18 // COIN_USDTT_DECIMAL = 18 // true COIN_INCH_DECIMAL = 9 // true COIN_1_DECIMAL = 18 // COIN_520_DECIMAL = 16 // true COIN_520GVK_DECIMAL = 18 // COIN_AAT_DECIMAL = 18 // COIN_AAT1_DECIMAL = 18 // COIN_AAVE_DECIMAL = 18 // COIN_AC_DECIMAL = 18 // COIN_ACA_DECIMAL = 18 // COIN_ADABEP20_DECIMAL = 18 // COIN_ADC_DECIMAL = 18 // COIN_ADF_DECIMAL = 18 // COIN_ADS_DECIMAL = 18 // COIN_ADT_DECIMAL = 18 // COIN_AE_DECIMAL = 18 // COIN_AEN_DECIMAL = 18 // COIN_AEY_DECIMAL = 18 // COIN_AGC_DECIMAL = 18 // COIN_AGI_DECIMAL = 18 // COIN_AGL_DECIMAL = 18 // COIN_AIAC_DECIMAL = 18 // COIN_AIBTBEP20_DECIMAL = 18 // COIN_AIDOL_DECIMAL = 18 // COIN_AIMMBEP20_DECIMAL = 18 // COIN_AIOT2BEP20_DECIMAL = 18 // COIN_AIOT3BEP20_DECIMAL = 18 // COIN_AIOTBEP20_DECIMAL = 18 // COIN_AJS_DECIMAL = 18 // COIN_ALC_DECIMAL = 18 // COIN_ALGO_DECIMAL = 18 // COIN_AMCTRC20_DECIMAL = 18 // COIN_ANT_DECIMAL = 18 // COIN_AQP_DECIMAL = 18 // COIN_ATB_DECIMAL = 18 // COIN_ATS_6513_DECIMAL = 18 // COIN_AUD_DECIMAL = 18 // COIN_AUKCTRC20_DECIMAL = 18 // COIN_AUKTRC20_DECIMAL = 18 // COIN_AXS_DECIMAL = 18 // COIN_AYABEP20_DECIMAL = 18 // COIN_BAL_DECIMAL = 18 // COIN_BAMBOOKIP20_DECIMAL = 18 // COIN_BAND_DECIMAL = 18 // COIN_BAT_DECIMAL = 18 // COIN_BATT_DECIMAL = 18 // COIN_BBTC_DECIMAL = 18 // COIN_BCAB_DECIMAL = 18 // COIN_BDGO_DECIMAL = 18 // COIN_BEDR_DECIMAL = 18 // COIN_BENEFIT_DECIMAL = 18 // COIN_BFC2BEP20_DECIMAL = 18 // COIN_BFCBEP20_DECIMAL = 18 // COIN_BHB_DECIMAL = 18 // COIN_BHTX_DECIMAL = 18 // COIN_BIC_DECIMAL = 18 // COIN_BICTRC20_DECIMAL = 18 // COIN_BIK_DECIMAL = 18 // COIN_BIM_DECIMAL = 18 // COIN_BITCHRC20_DECIMAL = 18 // COIN_BJ_DECIMAL = 18 // COIN_BLC_DECIMAL = 18 // COIN_BLCC_DECIMAL = 18 // COIN_BLN_DECIMAL = 18 // COIN_BNB_DECIMAL = 18 // COIN_BNC_DECIMAL = 18 // COIN_BNEX_DECIMAL = 18 // COIN_BOM_DECIMAL = 18 // COIN_BOX_DECIMAL = 18 // COIN_BQE_DECIMAL = 18 // COIN_BQG_DECIMAL = 18 // COIN_BS3_DECIMAL = 18 // COIN_BSC_DECIMAL = 18 // COIN_BT_DECIMAL = 18 // COIN_BTA_DECIMAL = 18 // COIN_BTBB_DECIMAL = 18 // COIN_BTCL_DECIMAL = 18 // COIN_BTCM_DECIMAL = 18 // COIN_BTCP_DECIMAL = 18 // COIN_BTT_DECIMAL = 18 // COIN_BTXY_DECIMAL = 18 // COIN_BTYX_DECIMAL = 18 // COIN_BUSD_DECIMAL = 18 // COIN_BXB_DECIMAL = 18 // COIN_BYB_DECIMAL = 18 // COIN_BYQ_DECIMAL = 18 // COIN_CAC_DECIMAL = 18 // COIN_CAG_DECIMAL = 18 // COIN_CAT_DECIMAL = 18 // COIN_CB_DECIMAL = 18 // COIN_CC_DECIMAL = 18 // COIN_CCT_DECIMAL = 18 // COIN_CCTRC20_DECIMAL = 18 // COIN_CELR_DECIMAL = 18 // COIN_CEZBEP20_DECIMAL = 18 // COIN_CFDBEP20_DECIMAL = 18 // COIN_CGC_DECIMAL = 18 // COIN_CHET_DECIMAL = 18 // COIN_CHP_DECIMAL = 18 // COIN_CHTBEP20_DECIMAL = 18 // COIN_CHZ_DECIMAL = 18 // COIN_CIPC_DECIMAL = 18 // COIN_CJZ_DECIMAL = 18 // COIN_CLY_DECIMAL = 18 // COIN_CMC_DECIMAL = 18 // COIN_CMONE_DECIMAL = 18 // COIN_CMTBEP20_DECIMAL = 18 // COIN_CNT_DECIMAL = 18 // COIN_CNTTRC20_DECIMAL = 18 // COIN_CNYTOKEN_DECIMAL = 18 // COIN_COB_DECIMAL = 18 // COIN_COC_DECIMAL = 18 // COIN_COMP_DECIMAL = 18 // COIN_COVID_DECIMAL = 18 // COIN_CPT_DECIMAL = 18 // COIN_CRSTK_DECIMAL = 18 // COIN_CRU_DECIMAL = 18 // COIN_CRV_DECIMAL = 18 // COIN_CSS_DECIMAL = 18 // COIN_CT_DECIMAL = 18 // COIN_CTGC_DECIMAL = 18 // COIN_CYA_DECIMAL = 18 // COIN_CYB_DECIMAL = 18 // COIN_CYCBEP20_DECIMAL = 18 // COIN_CYCCOINBEP20_DECIMAL = 18 // COIN_DACC_DECIMAL = 18 // COIN_DAI_DECIMAL = 18 // COIN_DBL_DECIMAL = 18 // COIN_DCCBEP20_DECIMAL = 18 // COIN_DEB_DECIMAL = 18 // COIN_DEFU_DECIMAL = 18 // COIN_DENT_DECIMAL = 18 // COIN_DFT_DECIMAL = 18 // COIN_DIPP_DECIMAL = 18 // COIN_DL_DECIMAL = 18 // COIN_DLB_DECIMAL = 18 // COIN_DLKM_DECIMAL = 18 // COIN_DMTS_DECIMAL = 18 // COIN_DNN_DECIMAL = 18 // COIN_DOGE_DECIMAL = 18 // COIN_DTTTRC20_DECIMAL = 18 // COIN_DUSD_DECIMAL = 18 // COIN_DYF_DECIMAL = 18 // COIN_DYOO_DECIMAL = 18 // COIN_DYS_DECIMAL = 18 // COIN_EDCC_DECIMAL = 18 // COIN_EDIEN_DECIMAL = 18 // COIN_EDIENGOLD_DECIMAL = 18 // COIN_EDPC_DECIMAL = 18 // COIN_EDU_DECIMAL = 18 // COIN_EGTC_DECIMAL = 18 // COIN_EKP_DECIMAL = 18 // COIN_EMX_DECIMAL = 18 // COIN_ENG_DECIMAL = 18 // COIN_ENJ_DECIMAL = 18 // COIN_EPKBEP20_DECIMAL = 18 // COIN_ERC20_EPK_DECIMAL = 18 // COIN_ESA_DECIMAL = 18 // COIN_ETF_DECIMAL = 18 // COIN_ETHA_DECIMAL = 18 // ETA COIN_ETHOS_DECIMAL = 18 // COIN_ETHS_DECIMAL = 18 // COIN_ETHSGB_DECIMAL = 18 // COIN_ETJ_DECIMAL = 18 // COIN_ETK_DECIMAL = 18 // COIN_ETRC_DECIMAL = 18 // COIN_ETU_DECIMAL = 18 // COIN_EUD_DECIMAL = 18 // COIN_EURO_DECIMAL = 18 // COIN_EW_DECIMAL = 18 // COIN_EZB_DECIMAL = 18 // COIN_FANT_DECIMAL = 18 // COIN_FCLT_DECIMAL = 18 // COIN_FCNHECO_DECIMAL = 18 // COIN_FE_DECIMAL = 18 // COIN_FEF_DECIMAL = 18 // COIN_FET_DECIMAL = 18 // COIN_FFCTRC20_DECIMAL = 18 // COIN_FFT_DECIMAL = 18 // COIN_FIL_DECIMAL = 18 // COIN_FILBEP20_DECIMAL = 18 // COIN_FIST_DECIMAL = 18 // COIN_FLCSTRC20_DECIMAL = 18 // COIN_FNTBSC20_DECIMAL = 18 // COIN_FNTTRC20_DECIMAL = 18 // COIN_FNX_DECIMAL = 18 // COIN_FTE_DECIMAL = 18 // COIN_FUC_DECIMAL = 18 // COIN_FUCBEP20_DECIMAL = 18 // COIN_FUSD_DECIMAL = 18 // COIN_FUSDBEP20_DECIMAL = 18 // COIN_GABA_DECIMAL = 18 // COIN_GAC_DECIMAL = 18 // COIN_GAMTRC20_DECIMAL = 18 // COIN_GC_DECIMAL = 18 // COIN_GDC_DECIMAL = 18 // COIN_GDTRC20_DECIMAL = 18 // COIN_GFE_DECIMAL = 18 // COIN_GFTRC20_DECIMAL = 18 // COIN_GHBEP20_DECIMAL = 18 // COIN_GIP_DECIMAL = 18 // COIN_GLDTRC20_DECIMAL = 18 // COIN_GLM_DECIMAL = 18 // COIN_GLS_DECIMAL = 18 // COIN_GMBEP20_DECIMAL = 18 // COIN_GMT_DECIMAL = 18 // COIN_GNB_DECIMAL = 18 // COIN_GNO_DECIMAL = 18 // COIN_GOLD_DECIMAL = 18 // COIN_GOLDENBEP20_DECIMAL = 18 // COIN_GOT_DECIMAL = 18 // COIN_GRT_DECIMAL = 18 // COIN_GSDT_DECIMAL = 18 // COIN_GSG_DECIMAL = 18 // COIN_GST_DECIMAL = 18 // COIN_GTB_DECIMAL = 18 // COIN_GTD_DECIMAL = 18 // COIN_GUC_DECIMAL = 18 // COIN_GUSD_DECIMAL = 18 // COIN_GUV_DECIMAL = 18 // COIN_HB_DECIMAL = 18 // COIN_HBSV_DECIMAL = 18 // COIN_HBLRM_DECIMAL = 18 // COIN_HE_1_DECIMAL = 18 // COIN_HECO_DECIMAL = 18 // COIN_HECOBCH_DECIMAL = 18 // COIN_HECOBSV_DECIMAL = 18 // COIN_HECOBTC_DECIMAL = 18 // COIN_HECOCBC_DECIMAL = 18 // COIN_HECODOG_DECIMAL = 18 // COIN_HECODOT_DECIMAL = 18 // COIN_HECOETH_DECIMAL = 18 // COIN_HECOFIL_DECIMAL = 18 // COIN_HECOLTC_DECIMAL = 18 // COIN_HECOUSDT_DECIMAL = 18 // COIN_HECOXTZ_DECIMAL = 18 // COIN_HES_DECIMAL = 18 // COIN_HF_DECIMAL = 18 // COIN_HHB_DECIMAL = 18 // COIN_HI_DECIMAL = 18 // COIN_HIBEP20_DECIMAL = 18 // COIN_HKL_DECIMAL = 18 // COIN_HKT_DECIMAL = 18 // COIN_HNC_DECIMAL = 18 // COIN_HQI_DECIMAL = 18 // COIN_HSTP_DECIMAL = 18 // COIN_HSTZ_DECIMAL = 18 // COIN_HT_DECIMAL = 18 // COIN_HTDD_DECIMAL = 18 // COIN_HTL_DECIMAL = 18 // COIN_HTMOON_DECIMAL = 18 // COIN_HTSGB_DECIMAL = 18 // COIN_HTSGB1_DECIMAL = 18 // COIN_HUSD_DECIMAL = 18 // COIN_HXB_DECIMAL = 18 // COIN_HXC_DECIMAL = 18 // COIN_HXJYTRC20_DECIMAL = 18 // COIN_IAC_DECIMAL = 18 // COIN_IAI_DECIMAL = 18 // COIN_ICT_DECIMAL = 18 // COIN_IEC_DECIMAL = 18 // COIN_IFPCTRC20_DECIMAL = 18 // COIN_IHT_DECIMAL = 18 // COIN_IOST_DECIMAL = 18 // COIN_IPCBEP20_DECIMAL = 18 // COIN_IRC_DECIMAL = 18 // COIN_ITCC_DECIMAL = 18 // COIN_IXBTC_DECIMAL = 18 // COIN_JKB_DECIMAL = 18 // COIN_JKE_DECIMAL = 18 // COIN_JKT_DECIMAL = 18 // COIN_JLC_DECIMAL = 18 // COIN_JLL_DECIMAL = 18 // COIN_JRL_DECIMAL = 18 // COIN_JST_DECIMAL = 18 // COIN_JYC_DECIMAL = 18 // COIN_KD_DECIMAL = 18 // COIN_KFILTRC20_DECIMAL = 18 // COIN_KFR_PLUS_DECIMAL = 18 // COIN_KMP_DECIMAL = 18 // COIN_KOOKTRC20_DECIMAL = 18 // COIN_KQT_DECIMAL = 18 // COIN_KT_DECIMAL = 18 // COIN_KTB_DECIMAL = 18 // COIN_LAMP_DECIMAL = 18 // COIN_LC_DECIMAL = 18 // COIN_LCLTRC20_DECIMAL = 18 // COIN_LCO_DECIMAL = 18 // COIN_LEAD_DECIMAL = 18 // COIN_LED_DECIMAL = 18 // COIN_LEND_DECIMAL = 18 // COIN_LEP_DECIMAL = 18 // COIN_LEP1_DECIMAL = 18 // COIN_LET_DECIMAL = 18 // COIN_LINF_DECIMAL = 18 // COIN_LINK_DECIMAL = 18 // COIN_LLA_DECIMAL = 18 // COIN_LMC_DECIMAL = 18 // COIN_LOOM_DECIMAL = 18 // COIN_LOVE_DECIMAL = 18 // COIN_LRON_DECIMAL = 18 // COIN_LUMI_DECIMAL = 18 // COIN_LUN_DECIMAL = 18 // COIN_LYJ_DECIMAL = 18 // COIN_MACD_DECIMAL = 18 // COIN_MATIC_DECIMAL = 18 // COIN_MB_DECIMAL = 18 // COIN_MBKTRC20_DECIMAL = 18 // COIN_MCDCTRC20_DECIMAL = 18 // COIN_MCO_DECIMAL = 18 // COIN_MCT_DECIMAL = 18 // COIN_MDCP_DECIMAL = 18 // COIN_MDS_DECIMAL = 18 // COIN_MDX_DECIMAL = 18 // COIN_MEM_DECIMAL = 18 // COIN_MEP_DECIMAL = 18 // COIN_MEPC_DECIMAL = 18 // COIN_META_DECIMAL = 18 // COIN_MFC_DECIMAL = 18 // COIN_MFSBEP20_DECIMAL = 18 // COIN_MG_DECIMAL = 18 // COIN_MHD_DECIMAL = 18 // COIN_MI_DECIMAL = 18 // COIN_MIC_DECIMAL = 18 // COIN_MKE_DECIMAL = 18 // COIN_MKR_DECIMAL = 18 // COIN_MKT_DECIMAL = 18 // COIN_MLB_DECIMAL = 18 // COIN_MMATRC20_DECIMAL = 18 // COIN_MOON_DECIMAL = 18 // COIN_MOP_DECIMAL = 18 // COIN_MSCOINTRC20_DECIMAL = 18 // COIN_MSV_DECIMAL = 18 // COIN_MT_DECIMAL = 18 // COIN_MTAXBEP20_DECIMAL = 18 // COIN_MTUHRC20_DECIMAL = 18 // COIN_NAC_DECIMAL = 18 // COIN_NB_DECIMAL = 18 // COIN_NBCO_DECIMAL = 18 // COIN_NBLC_DECIMAL = 18 // COIN_NEB_DECIMAL = 18 // COIN_NEST_DECIMAL = 18 // COIN_NFTTRC20_DECIMAL = 18 // COIN_NMR_DECIMAL = 18 // COIN_NORN_DECIMAL = 18 // COIN_OGC_DECIMAL = 18 // COIN_OKTPND_DECIMAL = 18 // COIN_OLED_DECIMAL = 18 // COIN_OMG_DECIMAL = 18 // COIN_OMNI_DECIMAL = 18 // COIN_ONEP_DECIMAL = 18 // COIN_OSK_DECIMAL = 18 // COIN_OSSBEP20_DECIMAL = 18 // COIN_PAX_DECIMAL = 18 // COIN_PAXG_DECIMAL = 18 // COIN_PAY_DECIMAL = 18 // COIN_PC_DECIMAL = 18 // COIN_PDABEP20_DECIMAL = 18 // COIN_PEACHNFTTRC20_DECIMAL = 18 // COIN_PGT_DECIMAL = 18 // COIN_PHABEP20_DECIMAL = 18 // COIN_PINGTRC20_DECIMAL = 18 // COIN_PIPPI_DECIMAL = 18 // COIN_PITBEP20_DECIMAL = 18 // COIN_PKC_DECIMAL = 18 // COIN_PKL_DECIMAL = 18 // COIN_PLCTRC20_DECIMAL = 18 // COIN_PN_DECIMAL = 18 // COIN_POLY_DECIMAL = 18 // COIN_POM_DECIMAL = 18 // COIN_POSCHE_DECIMAL = 18 // COIN_POWR_DECIMAL = 18 // COIN_PPT_DECIMAL = 18 // COIN_PRC_DECIMAL = 18 // COIN_PTD_DECIMAL = 18 // COIN_PTTRC20_DECIMAL = 18 // COIN_PUTTRC20_DECIMAL = 18 // COIN_QAS_DECIMAL = 18 // COIN_QBATT_DECIMAL = 18 // COIN_QC_DECIMAL = 18 // COIN_QRC_DECIMAL = 18 // COIN_QUT_DECIMAL = 18 // COIN_RACABEP20_DECIMAL = 18 // COIN_RBT_DECIMAL = 18 // COIN_RCNR_DECIMAL = 18 // COIN_REC_DECIMAL = 18 // COIN_REN_DECIMAL = 18 // COIN_REP_DECIMAL = 18 // COIN_REPV2_DECIMAL = 18 // COIN_RLC_DECIMAL = 18 // COIN_ROZ_DECIMAL = 18 // COIN_SALT_DECIMAL = 18 // COIN_SBC_DECIMAL = 18 // COIN_SCNY_DECIMAL = 18 // COIN_SEKCC_DECIMAL = 18 // COIN_SF_DECIMAL = 18 // COIN_SHI_DECIMAL = 18 // COIN_SHIB_DECIMAL = 18 // COIN_SHIB2_DECIMAL = 18 // COIN_SLA_DECIMAL = 18 // COIN_SLP_DECIMAL = 18 // COIN_SLPBEP20_DECIMAL = 18 // COIN_SMMBEP20_DECIMAL = 18 // COIN_SMMTRC20_DECIMAL = 18 // COIN_SNT_DECIMAL = 18 // COIN_SPAYX2TRC20_DECIMAL = 18 // COIN_SPAYXTRC20_DECIMAL = 18 // COIN_SPT_DECIMAL = 18 // COIN_SPTBEP20_DECIMAL = 18 // COIN_SQC_DECIMAL = 18 // COIN_SRTBEP20_DECIMAL = 18 // COIN_STAR_DECIMAL = 18 // COIN_STIBEP20_DECIMAL = 18 // COIN_STN_DECIMAL = 18 // COIN_STORJ_DECIMAL = 18 // COIN_STS_DECIMAL = 18 // COIN_SUCN_DECIMAL = 18 // COIN_SUO_DECIMAL = 18 // COIN_SUSHI_DECIMAL = 18 // COIN_TALC_DECIMAL = 18 // COIN_TCC_DECIMAL = 18 // COIN_TCP_DECIMAL = 18 // COIN_TF_DECIMAL = 18 // COIN_TITRC20_DECIMAL = 18 // COIN_TKPRO_DECIMAL = 18 // COIN_TLB_DECIMAL = 18 // COIN_TMC_DECIMAL = 18 // COIN_TMD_DECIMAL = 18 // COIN_TOPBULL_DECIMAL = 18 // COIN_TOROCUS_DECIMAL = 18 // COIN_TRB_DECIMAL = 18 // COIN_TRCDXAN_DECIMAL = 18 // COIN_TRCFFC_DECIMAL = 18 // COIN_TRCFFC0_DECIMAL = 18 // COIN_TRCFILC_DECIMAL = 18 // COIN_TRCGM_DECIMAL = 18 // COIN_TRCHEC_DECIMAL = 18 // COIN_TRCHF_DECIMAL = 18 // COIN_TRCMAT_DECIMAL = 18 // COIN_TRCMCDC_DECIMAL = 18 // COIN_TRCTCC_DECIMAL = 18 // COIN_TRCTCS_DECIMAL = 18 // COIN_TRCUDG_DECIMAL = 18 // COIN_TRCUSDT_DECIMAL = 18 // COIN_TRXSGB_DECIMAL = 18 // COIN_TTO_DECIMAL = 18 // COIN_TUR_DECIMAL = 18 // COIN_TUSD_DECIMAL = 18 // COIN_TWEE1_DECIMAL = 18 // COIN_TWEEB_DECIMAL = 18 // COIN_TWT_DECIMAL = 18 // COIN_UCC_DECIMAL = 18 // COIN_UCCBEP20_DECIMAL = 18 // COIN_UCTRC20_DECIMAL = 18 // COIN_UCX_DECIMAL = 18 // COIN_UDGBEP20_DECIMAL = 18 // COIN_ULI_DECIMAL = 18 // COIN_UMA_DECIMAL = 18 // COIN_UNIC_DECIMAL = 18 // COIN_UNION_DECIMAL = 18 // COIN_UPA_DECIMAL = 18 // COIN_UPL_DECIMAL = 18 // COIN_USDC_DECIMAL = 18 // COIN_USDCTRC20_DECIMAL = 18 // COIN_USDK_DECIMAL = 18 // COIN_USDM_DECIMAL = 18 // COIN_VETH_DECIMAL = 18 // COIN_VIDEOS_DECIMAL = 18 // COIN_VTS_DECIMAL = 18 // COIN_WBT_DECIMAL = 18 // COIN_WFDC_DECIMAL = 18 // COIN_WICC_DECIMAL = 18 // COIN_WOO_DECIMAL = 18 // COIN_WQZTRC_DECIMAL = 18 // COIN_WTS_DECIMAL = 18 // COIN_WXB_DECIMAL = 18 // COIN_WYC_DECIMAL = 18 // COIN_XBT_DECIMAL = 18 // COIN_XCBC_DECIMAL = 18 // COIN_XCQ_DECIMAL = 18 // COIN_XFACU_DECIMAL = 18 // COIN_XFG_DECIMAL = 18 // COIN_XHB_DECIMAL = 18 // COIN_XQE_DECIMAL = 18 // COIN_XZ_DECIMAL = 18 // COIN_YBD_DECIMAL = 18 // COIN_YBJ_DECIMAL = 18 // COIN_YCD_DECIMAL = 18 // COIN_YDE_DECIMAL = 18 // COIN_YFI_DECIMAL = 18 // COIN_YFII_DECIMAL = 18 // COIN_YK_DECIMAL = 18 // COIN_YMT_DECIMAL = 18 // COIN_YOCTRC20_DECIMAL = 18 // COIN_YSM_DECIMAL = 18 // COIN_YSZ_DECIMAL = 18 // COIN_YXB_DECIMAL = 18 // COIN_ZBY_DECIMAL = 18 // COIN_ZIL_DECIMAL = 18 // COIN_ZRX_DECIMAL = 18 // COIN_ZUSD_DECIMAL = 18 // COIN_ZYT_DECIMAL = 18 // COIN_LTC_DECIMAL = 18 // 萊特幣(Litecoin) )
Variables ¶
var CoinList []CoinInfo
var CoinMap map[string]CoinInfo
var DefaultDecimal = 13 // 默认输出精度
Functions ¶
func BigIntActualAmount ¶
---------------------------------------------------------------------------------------------------------------------- @title: Get the actual amount of *big.int @auth: jishulang.com @date: 2022/7/21 21:58
Types ¶
type AmountDecimal ¶
type AmountDecimal struct {
// contains filtered or unexported fields
}
func New ¶
func New(amount interface{}) *AmountDecimal
@title: initialization @auth: jishulang.com @date: 2022/7/21 21:58
func NewBigInt ¶
func NewBigInt(amount *big.Int) *AmountDecimal
@title: initialization *big.Int type @auth: jishulang.com @date: 2022/7/30 22:52
func NewBigRat ¶
func NewBigRat(amount *big.Rat) *AmountDecimal
@title: initialization *big.Rat type @auth: jishulang.com @date: 2022/7/30 22:52
func NewFloat32 ¶
func NewFloat32(amount float32) *AmountDecimal
@title: initialization float32 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewFloat64 ¶
func NewFloat64(amount float64) *AmountDecimal
@title: initialization float64 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewInt ¶
func NewInt(amount int) *AmountDecimal
@title: initialization int type @auth: jishulang.com @date: 2022/7/30 22:52
func NewInt16 ¶
func NewInt16(amount int16) *AmountDecimal
@title: initialization int16 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewInt32 ¶
func NewInt32(amount int32) *AmountDecimal
@title: initialization int32 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewInt64 ¶
func NewInt64(amount int64) *AmountDecimal
@title: initialization int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewInt8 ¶
func NewInt8(amount int8) *AmountDecimal
@title: initialization int8 type @auth: jishulang.com @date: 2022/7/30 22:52
func NewJsonNumber ¶
func NewJsonNumber(amount json.Number) *AmountDecimal
func NewString ¶
func NewString(amount string) *AmountDecimal
@title: initialization string type @auth: jishulang.com @date: 2022/7/30 20:59
func NewUint ¶
func NewUint(amount uint) *AmountDecimal
@title: initialization uint type @auth: jishulang.com @date: 2022/7/30 20:59
func NewUint16 ¶
func NewUint16(amount uint16) *AmountDecimal
@title: initialization uint16 type @auth: jishulang.com @date: 2022/7/30 20:59
func NewUint32 ¶
func NewUint32(amount uint32) *AmountDecimal
@title: initialization uint32 type @auth: jishulang.com @date: 2022/7/30 20:59
func NewUint64 ¶
func NewUint64(amount uint64) *AmountDecimal
@title: initialization uint64 type @auth: jishulang.com @date: 2022/7/30 20:59
func NewUint8 ¶
func NewUint8(amount uint8) *AmountDecimal
@title: initialization uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) Add ¶
func (c *AmountDecimal) Add(amounts ...interface{}) *AmountDecimal
@title: addition @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) AddBigInt ¶
func (c *AmountDecimal) AddBigInt(amounts ...*big.Int) *AmountDecimal
@title: addition *big.Int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddBigRat ¶
func (c *AmountDecimal) AddBigRat(amounts ...*big.Rat) *AmountDecimal
@title: addition *big.Rat type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddFloat32 ¶
func (c *AmountDecimal) AddFloat32(amounts ...float32) *AmountDecimal
@title: addition float32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddFloat64 ¶
func (c *AmountDecimal) AddFloat64(amounts ...float64) *AmountDecimal
@title: addition float64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddInt ¶
func (c *AmountDecimal) AddInt(amounts ...int) *AmountDecimal
@title: addition int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddInt16 ¶
func (c *AmountDecimal) AddInt16(amounts ...int16) *AmountDecimal
@title: addition int16 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddInt32 ¶
func (c *AmountDecimal) AddInt32(amounts ...int32) *AmountDecimal
@title: addition int32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddInt64 ¶
func (c *AmountDecimal) AddInt64(amounts ...int64) *AmountDecimal
@title: addition int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddInt8 ¶
func (c *AmountDecimal) AddInt8(amounts ...int8) *AmountDecimal
@title: addition int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) AddJsonNumber ¶
func (c *AmountDecimal) AddJsonNumber(amounts ...json.Number) *AmountDecimal
@title: addition json.Number type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddString ¶
func (c *AmountDecimal) AddString(amounts ...string) *AmountDecimal
@title: addition string type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddUint ¶
func (c *AmountDecimal) AddUint(amounts ...uint) *AmountDecimal
@title: addition uint type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddUint16 ¶
func (c *AmountDecimal) AddUint16(amounts ...uint16) *AmountDecimal
@title: addition uint16 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddUint32 ¶
func (c *AmountDecimal) AddUint32(amounts ...uint32) *AmountDecimal
@title: addition uint32 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddUint64 ¶
func (c *AmountDecimal) AddUint64(amounts ...uint64) *AmountDecimal
@title: addition uint64 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) AddUint8 ¶
func (c *AmountDecimal) AddUint8(amounts ...uint8) *AmountDecimal
@title: addition uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) Div ¶
func (c *AmountDecimal) Div(amounts ...interface{}) *AmountDecimal
@title: division @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) DivBigInt ¶
func (c *AmountDecimal) DivBigInt(amounts ...*big.Int) *AmountDecimal
@title: division *big.Int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivBigRat ¶
func (c *AmountDecimal) DivBigRat(amounts ...*big.Rat) *AmountDecimal
@title: division *big.Rat type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivFloat32 ¶
func (c *AmountDecimal) DivFloat32(amounts ...float32) *AmountDecimal
@title: division float32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivFloat64 ¶
func (c *AmountDecimal) DivFloat64(amounts ...float64) *AmountDecimal
@title: division float64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivInt ¶
func (c *AmountDecimal) DivInt(amounts ...int) *AmountDecimal
@title: division int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivInt16 ¶
func (c *AmountDecimal) DivInt16(amounts ...int16) *AmountDecimal
@title: division int16 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivInt32 ¶
func (c *AmountDecimal) DivInt32(amounts ...int32) *AmountDecimal
@title: division int32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivInt64 ¶
func (c *AmountDecimal) DivInt64(amounts ...int64) *AmountDecimal
@title: division int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivInt8 ¶
func (c *AmountDecimal) DivInt8(amounts ...int8) *AmountDecimal
@title: division int8 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) DivJsonNumber ¶
func (c *AmountDecimal) DivJsonNumber(amounts ...json.Number) *AmountDecimal
@title: division json.Number type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivString ¶
func (c *AmountDecimal) DivString(amounts ...string) *AmountDecimal
@title: division string type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivUint ¶
func (c *AmountDecimal) DivUint(amounts ...uint) *AmountDecimal
@title: division uint type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivUint16 ¶
func (c *AmountDecimal) DivUint16(amounts ...uint16) *AmountDecimal
@title: division uint16 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivUint32 ¶
func (c *AmountDecimal) DivUint32(amounts ...uint32) *AmountDecimal
@title: division uint32 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivUint64 ¶
func (c *AmountDecimal) DivUint64(amounts ...uint64) *AmountDecimal
@title: division uint64 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) DivUint8 ¶
func (c *AmountDecimal) DivUint8(amounts ...uint8) *AmountDecimal
@title: division uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) Mul ¶
func (c *AmountDecimal) Mul(amounts ...interface{}) *AmountDecimal
@title: multiplication @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) MulBigInt ¶
func (c *AmountDecimal) MulBigInt(amounts ...*big.Int) *AmountDecimal
@title: multiplication *big.Int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulBigRat ¶
func (c *AmountDecimal) MulBigRat(amounts ...*big.Rat) *AmountDecimal
@title: multiplication *big.Rat type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulFloat32 ¶
func (c *AmountDecimal) MulFloat32(amounts ...float32) *AmountDecimal
@title: multiplication float32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulFloat64 ¶
func (c *AmountDecimal) MulFloat64(amounts ...float64) *AmountDecimal
@title: multiplication float64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulInt ¶
func (c *AmountDecimal) MulInt(amounts ...int) *AmountDecimal
@title: multiplication int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulInt16 ¶
func (c *AmountDecimal) MulInt16(amounts ...int16) *AmountDecimal
@title: multiplication int16 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulInt32 ¶
func (c *AmountDecimal) MulInt32(amounts ...int32) *AmountDecimal
@title: multiplication int32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulInt64 ¶
func (c *AmountDecimal) MulInt64(amounts ...int64) *AmountDecimal
@title: multiplication int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulInt8 ¶
func (c *AmountDecimal) MulInt8(amounts ...int8) *AmountDecimal
@title: multiplication int8 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) MulJsonNumber ¶
func (c *AmountDecimal) MulJsonNumber(amounts ...json.Number) *AmountDecimal
@title: multiplication json.Number type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulString ¶
func (c *AmountDecimal) MulString(amounts ...string) *AmountDecimal
@title: multiplication string type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulUint ¶
func (c *AmountDecimal) MulUint(amounts ...uint) *AmountDecimal
@title: multiplication uint type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulUint16 ¶
func (c *AmountDecimal) MulUint16(amounts ...uint16) *AmountDecimal
@title: multiplication uint16 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulUint32 ¶
func (c *AmountDecimal) MulUint32(amounts ...uint32) *AmountDecimal
@title: multiplication uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulUint64 ¶
func (c *AmountDecimal) MulUint64(amounts ...uint64) *AmountDecimal
@title: multiplication uint64 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) MulUint8 ¶
func (c *AmountDecimal) MulUint8(amounts ...uint8) *AmountDecimal
@title: multiplication uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) Sub ¶
func (c *AmountDecimal) Sub(amounts ...interface{}) *AmountDecimal
@title: subtraction @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) SubBigInt ¶
func (c *AmountDecimal) SubBigInt(amounts ...*big.Int) *AmountDecimal
@title: subtraction *big.Int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubBigRat ¶
func (c *AmountDecimal) SubBigRat(amounts ...*big.Rat) *AmountDecimal
@title: subtraction *big.Rat type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubFloat32 ¶
func (c *AmountDecimal) SubFloat32(amounts ...float32) *AmountDecimal
@title: subtraction float32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubFloat64 ¶
func (c *AmountDecimal) SubFloat64(amounts ...float64) *AmountDecimal
@title: subtraction float64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubInt ¶
func (c *AmountDecimal) SubInt(amounts ...int) *AmountDecimal
@title: subtraction int type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubInt16 ¶
func (c *AmountDecimal) SubInt16(amounts ...int16) *AmountDecimal
@title: subtraction int16 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubInt32 ¶
func (c *AmountDecimal) SubInt32(amounts ...int32) *AmountDecimal
@title: subtraction int32 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubInt64 ¶
func (c *AmountDecimal) SubInt64(amounts ...int64) *AmountDecimal
@title: subtraction int64 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubInt8 ¶
func (c *AmountDecimal) SubInt8(amounts ...int8) *AmountDecimal
@title: subtraction int8 type @auth: jishulang.com @date: 2022/7/30 22:52
func (*AmountDecimal) SubJsonNumber ¶
func (c *AmountDecimal) SubJsonNumber(amounts ...json.Number) *AmountDecimal
@title: subtraction json.Number type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubString ¶
func (c *AmountDecimal) SubString(amounts ...string) *AmountDecimal
@title: subtraction string type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubUint ¶
func (c *AmountDecimal) SubUint(amounts ...uint) *AmountDecimal
@title: subtraction uint type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubUint16 ¶
func (c *AmountDecimal) SubUint16(amounts ...uint16) *AmountDecimal
@title: subtraction uint16 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubUint32 ¶
func (c *AmountDecimal) SubUint32(amounts ...uint32) *AmountDecimal
@title: subtraction uint32 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubUint64 ¶
func (c *AmountDecimal) SubUint64(amounts ...uint64) *AmountDecimal
@title: subtraction uint64 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) SubUint8 ¶
func (c *AmountDecimal) SubUint8(amounts ...uint8) *AmountDecimal
@title: subtraction uint8 type @auth: jishulang.com @date: 2022/7/30 20:59
func (*AmountDecimal) ToBigInt ¶
func (c *AmountDecimal) ToBigInt(decimalOrCoin interface{}) (*big.Int, error)
@title: Output *big.Int @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) ToBigRat ¶
func (c *AmountDecimal) ToBigRat() (*big.Rat, error)
@title: Output *big.Rat @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) ToJsonNumber ¶
func (c *AmountDecimal) ToJsonNumber(decimalOrCoin interface{}) (amountJsonNumber json.Number, err error)
@title: Output json.Number @auth: jishulang.com @date: 2022/7/21 21:58
func (*AmountDecimal) ToString ¶
func (c *AmountDecimal) ToString(decimalOrCoin interface{}) (amountStr string, err error)
@title: Output string @auth: jishulang.com @date: 2022/7/21 21:58
Source Files ¶
- amountdecimal.go
- amountdecimal_calculation.go
- amountdecimal_calculation_bigrat.go
- amountdecimal_def.go
- amountdecimal_err.go
- amountdecimal_fun.go
- amountdecimal_result.go
- amountdecimal_type_bigint.go
- amountdecimal_type_bigrat.go
- amountdecimal_type_float32.go
- amountdecimal_type_float64.go
- amountdecimal_type_int.go
- amountdecimal_type_int16.go
- amountdecimal_type_int32.go
- amountdecimal_type_int64.go
- amountdecimal_type_int8.go
- amountdecimal_type_interface.go
- amountdecimal_type_json_number.go
- amountdecimal_type_string.go
- amountdecimal_type_uint.go
- amountdecimal_type_uint16.go
- amountdecimal_type_uint32.go
- amountdecimal_type_uint64.go
- amountdecimal_type_uint8.go
- coin.go
- coin_decimal.go
- coin_fun.go