I'm getting this:
Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Long, given Number/Float
When I run This:
var speedValue = 0;
var eteMinsValue = 0;
var eteHoursValue = 0;
if(info has :distanceToNextPoint ){
if(info.distanceToNextPoint != null){
drValue = info.distanceToNextPoint / 1000;// to Km
if(speedValue != 0){
eteHoursValue = drValue / speedValue;
eteMinsValue = (eteHoursValue % 1)*60;
}
}
}
The issue goes away if I remove the modulus operator and change it with whatever other operator