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());
05-08 15:38