5 lines
217 B
Plaintext
5 lines
217 B
Plaintext
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) |