Hi,
On one popup page, we display a value after dividing it by 10.
It displays correctly in Chrome, but not in Edge. For example, the actual value is 40 in Chrome shows 4 but in Edge 40
in Edge show 40
Please advise on how to resolve this issue.
def transform(self, value, quality, timestamp):
try:
if value is None or value == "":
return "0.0"
return "{:.1f}".format(float(value))
except:
return "0.0"
Did you try removing the browser cache, then closing and reopening the browser again?
Or perhaps double check the URL?
i just chagne the format to none and now it show 4.0 on both browser.
1 Like
Is that script transform of the text prop of an input component? If so the user won’t be able to edit the value. You need to use a bidirectional binding which is only available on tag and property bindings.
Additionally, for something that simple, you shouldn't be using a script transform, use an expression binding instead. Script transforms have a lot of overhead compared to other types. (but again, you shouldnt be using an expression or script at all for an input component's display binding)