View Single Post
Old 08-19-2025, 09:39 AM   #1994
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,510
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
Edit: Thinking about this, I was about to suggest a rating_to_stars() function, only to discover it is already there, and it uses halfstars as well.
A simple template that uses rating_to_stars is
Code:
{#my_numeric_column:rating_to_stars()}
where #my_numeric_column is the lookup name for an integer or float custom column.

If you want half stars then use this
Code:
{#my_numeric_column:rating_to_stars(1)}
where #my_numeric_column is the lookup name for a float custom column.
chaley is offline   Reply With Quote