wuxw
2022-11-05 bcb0a01bde89af296a488642ef19479b49d4c045
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.java110;
 
import static org.junit.Assert.assertTrue;
 
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.util.DateUtil;
import org.junit.Test;
 
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
 
/**
 * Unit test for simple App.
 */
public class AppTest 
{
    /**
     * Rigorous Test :-)
     */
    @Test
    public void shouldAnswerWithTrue()
    {
 
        double amount = Double.parseDouble("0.6");
        BigDecimal amountBig = new BigDecimal(amount);
        amount = amountBig.subtract(new BigDecimal(Double.parseDouble("0.6"))).doubleValue();
        System.out.println(amount);
    }
}