////
/// @author Takeru Suzuki
////

/// Constrain number between two values
/// @since 1.12.0 - The Sith
/// @param {Number} $value - a number to check
/// @param {Number} $min [".0001"] - minimum number
/// @param {Number} $max [".9999"] - maximum number
/// @return {Number} - a number within the range
/// @example scss
///   // use the maximum
///   clip(1);
///   // .9999
///
///   // use the minimum
///   clip(-1);
///   // .0001
///
///   // use the value
///   clip(.025);
///   // .025
@function clip($value, $min: .0001, $max: .9999) {
	@return if($value > $max, $max, if($value < $min, $min, $value));
}
