View Single Post
Old 12-20-2021, 06:53 AM   #228
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,469
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kevn57 View Post
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')
chaley is offline   Reply With Quote