存储金额用什么数据类型

在JAVA里面用BigDecimal

private BigDecimal amountToPay;

 在mysqL数据库用

 

 并且默认值为0.00

posted @ 2020-07-31 16:49  *乐途*  阅读(1067)  评论(0)    收藏  举报