First this would be a bug not with HA but with Jinja if I am not mistaken. Further I would do all calculations and THEN use the “round” method. Because that makes it the most accurate and should guarantee your result.
Thanks! I’ve implemented the new value_template, and will give it a try for a few days to see if that clears up the problem. If it doesn’t do you have any idea where I might go to submit a bug report for Jinja?