Sha256: 3aa0806504ebd2cf8652e31cd68b7602d42e103840151db4340f5a7f8be9eae8
Contents?: true
Size: 305 Bytes
Versions: 31
Compression:
Stored size: 305 Bytes
Contents
// Returns $x * 2^$exp // @param {Number} $x // @param {Number} $exp @function ldexp ($x, $exp){ $b: if($exp >= 0, 2, 1 * .5); @if $exp < 0{ $exp: $exp * -1; } @while $exp > 0{ @if $exp % 2 == 1{ $x: $x * $b; } $b: $b * $b; $exp: floor($exp * .5); } @return $x; }
Version data entries
31 entries across 31 versions & 1 rubygems