修复Convert.toBigDecimal对于浮点型数据精度损失风险
This commit is contained in:
parent
bd0e574268
commit
a50fe6415b
|
|
@ -713,7 +713,7 @@ public class Convert
|
|||
}
|
||||
if (value instanceof Double)
|
||||
{
|
||||
return new BigDecimal((Double) value);
|
||||
return BigDecimal.valueOf((Double) value);
|
||||
}
|
||||
if (value instanceof Integer)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue