Power/exponent expression support
See original GitHub issueThoughts on adding native support for exponents in Sass expressions? While a simple loop can easily calculate positive integers, other values are more difficult to calculate. It can be done but not efficiently in pure Sass.
Preferred syntax would be like Ruby:
5px**2
A function could work as well:
pow(5px, 2)
Issue Analytics
- State:
- Created 11 years ago
- Reactions:7
- Comments:60 (5 by maintainers)
Top Results From Across the Web
Powers and exponents - Pre-Algebra - Math Planet
An expression that represents repeated multiplication of the same factor is called a power. ... When we multiply two powers we add their...
Read more >Power of Powers: Simplifying Exponential Expressions
Exponential expressions, or the notation of multiplication as exponents, can be simplified to give the most efficient notation possible.
Read more >The Basic Ins and Outs of Exponents | Purplemath
Exponents, also called powers or orders, are shorthand for repeated multiplication of the same thing by itself. For instance, the shorthand for multiplying ......
Read more >Rules for Exponents | Beginning Algebra - Lumen Learning
You can use the order of operations to evaluate the expressions containing exponents. First, evaluate anything in Parentheses or grouping symbols. Next, look ......
Read more >Power rule for exponents to simplify powers of powers
Think about this rule as the “power to a power” rule. In other words, what happens when we raise an exponential expression (a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@corysimmons No, 3 years to come up with a good, solid spec and implementation of namespacing and modules, while also handling all the other bugs and improvements that a popular living project like Sass generates.
Being rude can feel a little good in the moment, but it’s never polite, and it’s a major contributor to project-maintainer burnout. Next time you feel the need to leave a comment while annoyed, please consider waiting a while to cool down, and if you still feel like being a little rude, consider not posting at all.
I’m not part of the Sass project, nor was I replying to you. I was just updating the thread.
You need to seriously reconsider how you interact with project maintainers. Negativity generally has the exact opposite effect of what you want; it certainly doesn’t encourage people to work on the thing you’re “asking” about.