5 lines
217 B
Plaintext
Raw Normal View History

component Rating(value float64, user *arn.User)
if user == nil
.anime-rating= fmt.Sprintf("%.1f", value)
else
.anime-rating= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)