I know this topic has been covered by many previous posts, but none of the solutions seems to work for me. Doubtless reflects my newbie ignorance.

I’m trying to calculate a daily average for gas usage by dividing the total heating gas used so far this month by the day of the month, but I’m getting 15 decimal places instead of the 2 that I’d like.

If I simplify the template for demonstration purposes by substituting a simple integer in place of total gas used (I’ve used an arbitrary number of 66 here), I get the correct value but not to two decimal places.

Ah ok. you did it in the UI. No availability template for you then. Also thinking about it, you don’t need it. If now() goes missing you will have much bigger problems to deal with.