Made sure step size==0.0 is treated as positive