| Package | Description |
|---|---|
| pro.fessional.mirana.math |
| Modifier and Type | Method and Description |
|---|---|
static BalanceDecimal |
BalanceDecimal.of(BigDecimal total,
List<BigDecimal> items)
balance the number with the count, and the scale is 2 (0.01)
20/6 = [3.33, 3.33, 3.34, 3.33, 3.33, 3.34]
|
static BalanceDecimal |
BalanceDecimal.of(BigDecimal total,
List<BigDecimal> items,
int scale)
balance the number with the count, and the assigned scale
20/6 = [3.33, 3.33, 3.34, 3.33, 3.33, 3.34]
|
Copyright © 2023. All rights reserved.