var stepProgress = (ActivityMonitor.getInfo().steps*1.0)/(ActivityMonitor.getInfo().stepGoal*1.0);
if (stepProgress > 1) {
System.println( "Do something");
}
else {
System.println("stepProgress < 1 - Value:" + Math.ceil(stepProgress));
}
System.println("Step Progress: "+stepProgress.toString() );
Even when stepProgress takes the value of 1.03, 2.3, 3.5, 4, etc. is always executing the "else" code. Why???
Any ideas?