Quote:
Originally Posted by ownedbycats
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.