Thread: Book Size
View Single Post
Old 07-28-2014, 06:06 PM   #7
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by chaley View Post
1) Create a custom column "built from other columns".
2) Change the "sort/search column" to "Number"
3) Paste the following into the template box.
Code:
program: format_number(divide(booksize(), 1024), '{0:,.1f}KB')
While this does seem to work for calculating the size, the sorting is not working. It still sorts as if the column is text. Also, is it possible to use the dot as a thousand delimiter and remove the decimal?

I've tried some formatting options, but sometimes I get a very long number (probably the number of bytes the book has), or nothing at all.
Katsunami is offline   Reply With Quote