Created
March 3, 2012 03:10
-
-
Save hail2u/1964056 to your computer and use it in GitHub Desktop.
Scss funntion: pow()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pow() - Raise number to the nth power | |
// | |
// @param {number} $base The base number | |
// @param {number} $exponents The exponent to which to raise $base | |
@function pow($base, $exponents) { | |
$raised: 1; | |
@for $i from 1 through $exponents { | |
$raised: $raised * $base; | |
} | |
@return $raised; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment