将double类型,保留为任意位数的String类型: String name = String.format("%.1f", result.getDouble("total")/result.getDouble("target"));