question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Power/exponent expression support

See original GitHub issue

Thoughts 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:open
  • Created 11 years ago
  • Reactions:7
  • Comments:60 (5 by maintainers)

github_iconTop GitHub Comments

31reactions
tabatkinscommented, Mar 16, 2016

@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.

3reactions
tabatkinscommented, Aug 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found