xiaoyong931011
2021-07-06 e84450eda524efd94e9c86307108f7dfc4c0392c
1
2
3
4
5
6
7
8
9
10
11
12
13
import cn.hutool.core.util.NumberUtil;
import org.junit.Test;
 
import java.math.BigDecimal;
 
public class NumTest {
 
    @Test
    public  void  test1(){
        BigDecimal bigDecimal = NumberUtil.toBigDecimal("1200.00");
        System.out.println(bigDecimal.toString());
    }
}