View Single Post
Old 07-13-2011, 05:17 PM   #4
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,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by lathom View Post
Thanks Kovid - I knew it had to be simple. I had been messing with the template functions with no success. On that note, I would like to have a column showing the size rounded to the nearest KB and I'm having no luck with the number_format template. I ended up with {::'subitems(divide(booksize(),1000),0,1)'} which gets me close, but it doesn't sort right.

Thanks for an amazing program!
-Andy
With a late release of calibre, try the template function human_readable. You must tell calibre that the column is to be sorted as a number.
chaley is offline   Reply With Quote