View Single Post
Old 05-28-2021, 10:19 PM   #1
Phil_C
Addict
Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.Phil_C ought to be getting tired of karma fortunes by now.
 
Phil_C's Avatar
 
Posts: 274
Karma: 391602
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E; Kobo Clara BW
Can't get half-stars using rating_to_stars function

My plugboard places various items at the beginning of the Comments in the Details on a Kobo Clara.

The part of the template I'm having trouble with is this:

{#gr1:rating_to_stars(value,1)|<div>Rating: |</div><hr/>}

No half-stars show up, only whole stars. The rating comes from a custom column of floating point numbers. The ratings are from Goodreads and show up in the format x.xx in the custom column.

I must have something wrong, but I'm baffled, so I hope someone here can help. Thanks!
Phil_C is offline   Reply With Quote