ClausAnd
Posts: 136
Joined: Tue Jul 05, 2011 12:09 am
Location: Denmark

device mapper scripting - conversion errors?

Mon Aug 14, 2017 7:59 pm

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

ClausAnd
Posts: 136
Joined: Tue Jul 05, 2011 12:09 am
Location: Denmark

SOLVED Re: device mapper scripting - conversion errors?

Wed Aug 16, 2017 9:20 pm

OK - turned out to be a localization issue in the script editor

Return to “GpsGate for Developers”