This commit is contained in:
张良(004796)
2024-01-05 18:18:21 +08:00
parent 4bc8850fad
commit 0fa2841213
25 changed files with 605 additions and 209 deletions

View File

@@ -14,6 +14,9 @@ public class NumCaUtil {
* @return
*/
public static Long coin(Long value, BigDecimal rate){
if(value == null || rate == null){
return 0L;
}
BigDecimal decimal = NumberUtil.mul(value, rate);
return decimal.setScale(0, RoundingMode.DOWN).longValue();
}