Hi,
I have an Apple Watch complication and the round function does not seem to be working properly.
My code is below and you will see it is not rounding properly. You will see in the picture the output has multiple 0’s before a 1 (9.80000000000001)
I find that it works if I add text after the float part of the format, e.g. ‘%.2f F’. My theory is that something parses the text generated by the template, thinks it looks like a float, and converts it to float (with epsilon error). Appending text prevents the conversion.
I’m also finding this same issue. Does anyone have a reliable way to reproduce it? My preview in the iOS app shows the correct data and I only very rarely see the bug so I’m struggling to debug it.