Hi:
> ConsoleUtil.writeInfo("type %s size %s "%(type(-2147483648), sys.maxsize))
> INFO: type <type 'long'> size 2147483647
Sorry, but we couldn't care less about the python type().
What matters is the Java type that Jython passes to the setValue() Java code:
> value = -2147483648
> print(value.__class__.__name__)
long
.. and the Java type of the PV data:
> print(pvs[0].getValue().__class__.__name__)
IVdouble
Knowing the PV type and the actual data type passed in it'd be easier to figure out how the value is handled.
For example, it's possible that Jython is passing a java.lang.Long, but the PV type maps to a VShort and the value is thus truncated.
I'm using a local PV, why is the value of the PV IVdouble ?? Is it possible to avoid this conversion??
Thank you
Thanks,
Kay