View Single Post
Old 06-13-2025, 01:04 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I have just one book that uses 6.1 for 6-10 (Calibre removes the trailing 0.) Suggestions? I was thinking of splitting it as I have a few books from the series in physical format anyways.
The template should produce "10" for "6.1". The fractional part (.1) is multipled by 100, producing "10".

Ahhh, I see. The fractional part of 6.1 can come out as ".099999999999" instead of ".1". To fix it, change line 10 to be
Code:
			series_end = round(fraction * 100);
chaley is offline   Reply With Quote