9 lines
153 B
Go
Raw Normal View History

2017-07-12 22:34:33 +00:00
package utils
import "fmt"
// FormatRating formats the rating number.
func FormatRating(rating float64) string {
return fmt.Sprintf("%.1f", rating)
}