java从Object类型转换为double类型:
Map<String,Object> map = new HashMap<String,Object>();map.put("order",1.245);BigDecimal order = (BigDecimal)map.get("order");double d = (order==null?0:order.doubleValue());
时间:2022-07-31 12:47:14
java从Object类型转换为double类型:
Map<String,Object> map = new HashMap<String,Object>();map.put("order",1.245);BigDecimal order = (BigDecimal)map.get("order");double d = (order==null?0:order.doubleValue());