Quote:
Originally Posted by BetterRed
[MOD]
@eschwartz - I may be missing the point, but why not 'format' the series number (float) into a right justified fixed width string custom column.
|
Although one can specify right justification in the spreadsheet view, one cannot specify the width (number of digits).
The template processor removes leading and trailing spaces, so even though you can specify fixed-width right justification, the leading spaces will be removed. For that reason you must specify leading zeros, in which case left or right justification doesn't matter.
The purpose of the script is to generate the minimum sized number specification for all the books in a given series, taking into consideration digits on both sides of the decimal point. The person I was helping when I wrote it did not want to use a fixed template for all books, because some series had indices such as "nnn.nn" and others were simply "n".