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 e7fdce2 commit 4c01248
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 @@ -90,7 +90,7 @@ export function simplifyCalculation(root, info = {}) {
if (root.value === 'e') {
return new CSSUnitValue(Math.E, 'number');
} else if (root.value === 'pi') {
return new CSSUnitValue(3.1415926535897932, 'number');
return new CSSUnitValue(Math.PI, 'number');
}
}
// 4. Otherwise, return root.
Expand Down

0 comments on commit 4c01248

Please sign in to comment.