jquery/jquery-ui — pull request #1398 by dekajp (2014-12-16 02:57:59+00:00)
Title: Slider: Fix max calculation, when step is float

Fixes #10721

new _calculateNewMax method uses while loop, the cost should be very minimum
since this method is called one time in life of control, in create method or
when setOption(max) is called.

below method uses math functions to avoid loop, but this was failing
unit tests of slider_options.

TODO : to avoid while loop in Max Calculation

```

_calculateNewMax: function() {
var precision = this._precision();
var multiplier = Math.pow( 10 , precision );
var max = this.options.max * multiplier ;
var min = this._valueMin() * multiplier ;
var step = this.options.step * multiplier ;
var remainder = ( max - min ) % step;
this.max = ( ( max - remainder ) / multiplier ).toFixed(precision);
}

```