View Single Post
Old 08-21-2024, 04:54 PM   #4
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Massreader View Post
One column should show numbers with a decimal comma (e.g. 4,5). I would choose floating point as the column type.
{:n} seems to work! (but I would wait for more experienced members' advice)

And I think you need to be using a compatible locale, I mean, the Calibre UI language, such as German, seems relevant in order to allow manual inputs with the comma instead of dot/point. If you have English as the Calibre UI language, you can insert manually 4 point 5 (not 4 comma 5), but in Book Details that number will still show as 4,5.

According to https://docs.python.org/3/library/st...-string-syntax :

'n' - Number. This is the same as 'g', except that it uses the current locale setting to insert the appropriate number separator characters.

Last edited by Comfy.n; 08-21-2024 at 05:06 PM.
Comfy.n is offline   Reply With Quote