Can you round it to one d.p. then pass it as a string? In the template data.val will show up with 1 d.p.
Code:
'val': str(round(myval,1))Statistics: Posted by neilgl — Sun Feb 22, 2026 10:23 pm