TomD please use that code:
.battery.level ==> math.round ==> #battery.level
And here is a full list of math functions added:
math.round, math.floor, math.ceil, math.abs, math.acos, math.asin, math.atan, math.cos, math.exp, math.log, math.log2, math.log10, math.sin, math.sqrt, math.tan, math.trunc
All of them should be used in the same way as in the example above.