Page 1 of 1

device mapper scripting - conversion errors?

Posted: Mon Aug 14, 2017 7:59 pm
by ClausAnd
Hi

My device (Teltonika FMB120) reports speed in km/h as integers. These are converted by the device mapper into m/s. So far so good, as they display as expected.

Now I want to calculate a derived value - but when I use fields.get() it returns the m/s values as integers (without decimal point) rather than doubles so further calculations are impossible.

ie: 6.66666984558105 returned as 666666984558105.

/claus

SOLVED Re: device mapper scripting - conversion errors?

Posted: Wed Aug 16, 2017 9:20 pm
by ClausAnd
OK - turned out to be a localization issue in the script editor