liuxiaolong
2019-07-26 914cf7bf26c100b5af62c55b00c58884fee4cbd0
extend/util/util.go
@@ -192,6 +192,9 @@
}
func ParseScore(compareScore float32) float32 {
   f, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", compareScore*100), 32)
   if compareScore < 1 {
      compareScore = compareScore * 100
   }
   f, _ := strconv.ParseFloat(fmt.Sprintf("%2.2f", compareScore), 32)
   return float32(f)
}