I guess you could then regex the number to strip trailing zeroes and periods. But that might require raising the complexity to a
General Program Mode template -- I believe formatting comes after functions.
So:
Code:
program:
formatted_series = finish_formatting(
field('series_index'),
'4.1f',
'',
''
);
stripped_series = re(
formatted_series,
'^ \[(.*)[.0]+\]$',
' [\1] '
);
# Add together the final result
strcat(
field('series'),
stripped_series,
field('title')
);