Sha256: d6984fb4cc316e72edadd5f30d8ab6c432b08f17db3e8ae9afd80f5c979bf67f
Contents?: true
Size: 576 Bytes
Versions: 17
Compression:
Stored size: 576 Bytes
Contents
// @category utilities/units // abstract factor of measurement // @function _getUnit // @private // @param $number {Number} unit of measurement // @param $abuse {Bool} if `false`, $number cannot be a fraction // @return $number {Number} normalized number of measurement @function _getUnit($number, $abuse: false) { @if(not unitless($number)) { @warn "#{$number} is not unitless"; $number: strip-units($number); } @if($CONFIG_UNIT_FORCE_INT and ($CONFIG_UNIT_FORCE_INT == strict or not $abuse)) { @return ceil($number); } @return $number; }
Version data entries
17 entries across 17 versions & 1 rubygems