public class ToBaseUnit extends Object
| 构造器和说明 |
|---|
ToBaseUnit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
delEndsZero(String src) |
static String |
delStartZero(String src) |
static void |
main(String[] args) |
static String |
ToGas(String moAmount) |
static Long |
ToUGas(String bifAmount) |
static Long |
unitWithDecimals(String amountWithoutDecimals,
int decimals) |
static String |
unitWithoutDecimals(String amountWithDecimals,
int decimals) |
public static String unitWithoutDecimals(String amountWithDecimals, int decimals)
amountWithDecimals - The amount without decimalsdecimals - The decimals, that cannot be bigger than 18public static Long unitWithDecimals(String amountWithoutDecimals, int decimals)
amountWithoutDecimals - The amount without decimals, that must be a number smaller than LONG.MAX_VALUEdecimals - The decimals, that should be bigger than and equal to 0 and should be smaller
than 19public static void main(String[] args)
Copyright © 2025. All rights reserved.