Quote:
Originally Posted by kevn57
Could someone please tell me how to get 2 decimal places
program: ($$#minutes / 60)
when I try
program: ($$#minutes / 60){0:5.2f}
or
program: {0:.2f}.format($$#minutes / 60)
I get a template error
|
You can't intermix general program mode and single function mode template syntax.
Use the
format_number() function. Something like
Code:
program: format_number($$#minutes / 60, '5.2f')