View Single Post
Old 03-09-2021, 04:00 PM   #5
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,269
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by chaley View Post
Just FYI:

Starting in calibre 4.23 you can write:
Code:
program:
	format_number(add(floor(divide(booksize(), 1024)), 1), 'n')
The 'floor()' function was added in that release.

Starting in the next calibre release (5.13) you can write:
Code:
program:
	format_number(floor(booksize()/1024)+1,'n')
The arithmetic operators will be added in that release.
I hate to ask, but how do I turn this into a column? I never understood programing in Calibre. I was never able to use the program/coding function.
Rellwood is offline   Reply With Quote