View Single Post
Old 03-17-2014, 07:12 AM   #490
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by eschwartz View Post
#kcollections should be shortened to only the first three letters, in other words?

7.2f specifies a "float"-type number ("f" is for float). Floats are a type of number that accepts decimals. The 7.2 part says use 7 digits, with 2 digits after the decimal. In other words, you tried to turn a string (textual data) into a float (numerical data).

Try using {#kcollections:.3} which will default to using the "s" or string type (since you gave it a string with a name in it) and use only the first three letters. (the "precision".)

If you like, you can read an in-depth explanation on template-formatting here: http://docs.python.org/2/library/str...#formatstrings or the dumbed-down calibre-specific version here: http://manual.calibre-ebook.com/temp...ced-formatting.

Be warned, either one will involve gory details.
Thank you, that works perfectly. Now off to fix my collections, again!!
nynaevelan is offline   Reply With Quote