old mode 100644
new mode 100755
| | |
| | | package com.java110.utils; |
| | | |
| | | import com.java110.utils.util.DateUtil; |
| | | import junit.framework.Test; |
| | | import junit.framework.TestCase; |
| | | import junit.framework.TestSuite; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Calendar; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Unit test for simple App. |
| | |
| | | */ |
| | | public void testApp() |
| | | { |
| | | BigDecimal curFeePrice = new BigDecimal(346.815+""); |
| | | curFeePrice = curFeePrice.multiply(new BigDecimal(1)); |
| | | |
| | | String a = "1"; |
| | | System.out.printf("a=" + Integer.parseInt(a)); |
| | | curFeePrice = curFeePrice.setScale(2,BigDecimal.ROUND_HALF_UP); |
| | | |
| | | System.out.printf(curFeePrice.doubleValue()+""); |
| | | |
| | | } |
| | | } |