Rounding the operands doesn’t help you other than make it less accurate. You need to round the answer. enclose the whole thing it parens and cast it to round, get rid of the ones in the middle.
Thanks I understand what I was doing wrong now. round() still didn’t quite do what I wanted £5.800000000001 was being displayed as £5.8 so I slightly tweaked with format: -
Interesting. The above works in Template Editor but when added to configuration.yaml HA can’t parse it: -
Configuration errors
Error loading /config/configuration.yaml: while scanning for the next token
found character ‘%’ that cannot start any token
in “/config/configuration.yaml”, line 18, column 35