View Single Post
Old 03-16-2014, 11:41 PM   #489
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
#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.
eschwartz is offline   Reply With Quote