Skip to content

Commit

Permalink
Update src/simplify-calculation.js
Browse files Browse the repository at this point in the history
Co-authored-by: Bramus <[email protected]>
  • Loading branch information
johannesodland and bramus authored Feb 2, 2024
1 parent e64a826 commit e7fdce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simplify-calculation.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function simplifyCalculation(root, info = {}) {
if (root instanceof CSSKeywordValue) {
//https://www.w3.org/TR/css-values-4/#calc-constants
if (root.value === 'e') {
return new CSSUnitValue(2.7182818284590452354, 'number');
return new CSSUnitValue(Math.E, 'number');
} else if (root.value === 'pi') {
return new CSSUnitValue(3.1415926535897932, 'number');
}
Expand Down

0 comments on commit e7fdce2

Please sign in to comment.