标签:ota emc init multi initial ecos val span item
BigDecimal result = new BigDecimal(doubleValue).multiply(factor2);
public class Payment { BigDecimal itemCost; BigDecimal totalCost; // You can initialize it if you wish. public BigDecimal calculateCost(int itemQuantity, BigDecimal itemPrice) { itemCost = itemPrice.multiply(new BigDecimal(itemQuantity)); totalCost = totalCost.add(itemCost); return totalCost; } }
标签:ota emc init multi initial ecos val span item
原文地址:https://www.cnblogs.com/shy1766IT/p/10262348.html