View Single Post
Old 01-26-2023, 10:25 AM   #16
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
interesting, using field instead of raw_field (or $ instead of $$) seems to fix it
It doesn't 'fix' it but instead does the /2 calculation. This can lead to floating point answers on custom ratings columns if "allow half stars" is checked.

The calculation is never done when using calibre's database interface, so the programmer can know that the answer will always be an integer between 0 and 10.
chaley is offline   Reply With Quote