code: function(ev) {
  				if (this.touchCapable && (ev.type === 'touchstart' || ev.type === 'touchmove')) {
  					ev = ev.touches[0];
  				}
  
  				var eventPosition = ev[this.mousePos];
  				var sliderOffset = this._state.offset[this.stylePos];
  				var distanceToSlide = eventPosition - sliderOffset;
  				// Calculate what percent of the length the slider handle has slid
  				var percentage = (distanceToSlide / this._state.size) * 100;
  				percentage = Math.round(percentage / this._state.percentage[2]) * this._state.percentage[2];
  				if (this.options.reversed) {
  					percentage = 100 - percentage;
  				}
  
  				// Make sure the percent is within the bounds of the slider.
  				// 0% corresponds to the 'min' value of the slide
  				// 100% corresponds to the 'max' value of the slide
  				return Math.max(0, Math.min(100, percentage));
  			}
docs: /*
  Credits to Mike Samuel for the following method!
  Source: http://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number