From b0625ca293f3c934a64c337742735a0b7c88c636 Mon Sep 17 00:00:00 2001 From: Nate Wiebe Date: Fri, 13 Jan 2017 17:00:00 -0500 Subject: [PATCH] Increase default precision of the pow function --- scss/util/_color.scss | 2 +- scss/util/_math.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/util/_color.scss b/scss/util/_color.scss index 82d32b74f..66fa9e71c 100644 --- a/scss/util/_color.scss +++ b/scss/util/_color.scss @@ -23,7 +23,7 @@ $rgb: nth($rgba, $i); $rgb: $rgb / 255; - $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4, 18)); + $rgb: if($rgb < 0.03928, $rgb / 12.92, pow(($rgb + 0.055) / 1.055, 2.4)); $rgba2: append($rgba2, $rgb); } diff --git a/scss/util/_math.scss b/scss/util/_math.scss index 9b3e470e2..e3d190886 100644 --- a/scss/util/_math.scss +++ b/scss/util/_math.scss @@ -28,7 +28,7 @@ /// @param {Number} $exponent - The exponent. /// /// @returns {Number} The product of the exponentiation. -@function pow($base, $exponent, $prec: 12) { +@function pow($base, $exponent, $prec: 16) { @if (floor($exponent) != $exponent) { $prec2 : pow(10, $prec); $exponent: round($exponent * $prec2); -- 2.47.2