protected float floatSpeed(int lSpeed){
  if (lSpeed == 0) {
    return 0.0f;
  }
  if (getSpeedStepMode() == jmri.DccThrottle.SpeedStepMode28) {
    int step=(int)Math.ceil(lSpeed / 4.65);
    return step * SPEED_STEP_28_INCREMENT;
  }
  return ((lSpeed) / 126.f);
}

protected float floatSpeed ( int lSpeed ) { if ( lSpeed == 0 ) { return 0.0f ; } if ( getSpeedStepMode ( ) == jmri . DccThrottle . SpeedStepMode28 ) { int step = ( int ) Math . ceil ( lSpeed / 4.65 ) ; return step * SPEED_STEP_28_INCREMENT ; } return ( ( lSpeed ) / 126.f ) ; }
convert a ecos speed integer to a float speed value
