View Single Post
Old 04-18-2010, 02:32 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,115
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dwanthny View Post
I am using the save to disk feature with my daughter's ereader. I set the expression thus:

{author_sort}/{series}/{series_index:0>2s} - {title}

and it gives me the following results.

01
02
03
04
05
06
07
08
09
10
11
12
7.50
9.50

I was wondering (if possible) how I can get 2 decimals before and after the decimal point. Like this.

01.00
02.00
03.00
04.00
05.00
06.00
07.00
07.50
08.00
08.00
09.50
10.00
11.00
12.00
I can't get it to work for me: Series Index is 1.3
(shown template trimmed)

{series_index:0^5.2s}-{title}_{id}
Results: 01.00-the_dragonriders_of_pern_377 lost the decimal

{series_index:0<4.2s}-{title}_{id}
Results: 1.00-the_dragonriders_of_pern_377

{series_index:0>4.2s}-{title}_{id}
Results: 001.-the_dragonriders_of_pern_377




BTW your original template (and mine) shows
Results: 1.30-the_dragonriders_of_pern_377 No leading 0
Which is why the (directory) Alpha-sort fails to order as desired
theducks is offline   Reply With Quote