In vision, writing to Document Tag will truncate the decimal part:
Opening Tag:
Why oh why?
Ignition Version 8.1.21
In vision, writing to Document Tag will truncate the decimal part:
Opening Tag:
Why oh why?
Ignition Version 8.1.21
Strange indeed.
From memory, I don't believe I've needed to jsonEncode the dictionary first. If you write your obj
directly to the document tag, do you still experience the rounding error?
You are right, no need to convert object to jsonString. - was a result of my debuging.
But same result.
Its odd though, on tag Browser value column will show { ... 123.56} - but when I open tag, it will show like above screenshot. Hopeful its just a render issue.
I will try to do a Tag Read when I get home.
I wondered the same thing. FWIW, I opened a document tag of mine (on 8.1.44) and observed the float value as-stored.
Probably a old version issue..
When reading a document tag, I need to convert to dictionary, convert float literal to string then to float.. Otherwise, it throws error, value is not float.
Thank you.