This commit is contained in:
dute7liang
2024-01-20 01:43:28 +08:00
parent 168ce04086
commit 6993f764b7
6 changed files with 68 additions and 35 deletions

View File

@@ -20,4 +20,8 @@ public class NumCaUtil {
BigDecimal decimal = NumberUtil.mul(value, rate);
return decimal.setScale(0, RoundingMode.DOWN).longValue();
}
public static void main(String[] args) {
System.out.println(coin(5200L,BigDecimal.valueOf(0.07)));
}
}