public class AmountTools extends Object
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
fen2Yuan(Integer fen)
分转元
|
static BigDecimal |
fen2Yuan(Integer fen,
int scale,
RoundingMode roundingMode)
分转元
|
static BigDecimal |
getPositiveAmt(BigDecimal bigDecimal)
获取正数金额
|
static Integer |
yuan2Fen(BigDecimal yuan)
元转分
|
public static Integer yuan2Fen(BigDecimal yuan)
yuan - 元public static BigDecimal fen2Yuan(Integer fen)
fen - 分public static BigDecimal fen2Yuan(Integer fen, int scale, RoundingMode roundingMode)
fen - 分scale - 精度roundingMode - 舍入模式public static BigDecimal getPositiveAmt(BigDecimal bigDecimal)
bigDecimal - 金额Copyright © 2022. All rights reserved.