Hi Brad,
Thanks for the reply. As far as I can see, the problem is that the value of the attribute isn't evaluated at the time that the infoTemplate is created (so there's nothing to round yet). The code is setting up a template that is read at the point at which the graphic object is created.
Put another way - I can't see how to put the Math.round directive in the code above, and have it run as JavaScript, rather than being quoted as text. I'm not a JS expert.......
Any help would be appreciated.
Cheers,
Steve