Add power operator (^)
See original GitHub issueInstead of having to write 10^18 manually (10 with 18 zeroes), it would be nice if we could just write 10^18.
Acceptance criteria
- Power operator using the hat character (
^
) - Tests that demonstrate that the operator works as intended (include at least one that demonstrates its associativity)
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
Exponentiation (**) - JavaScript - MDN Web Docs - Mozilla
The exponentiation (**) operator returns the result of raising the first operand to the power of the second operand.
Read more >Power Function in C/C++
Given two numbers base and exponent, pow() function finds x raised to the power of y i.e. x y. Basically in C exponent...
Read more >Operator - Visual Basic
The following example uses the ^ operator to raise a number to the power of an exponent. The result is the first operand...
Read more >Exponentiation
Exponentiation is a mathematical operation, written as b n, involving two numbers, the base b and the exponent or power n, and pronounced...
Read more >What is the C++ function to raise a number to a power?
In C++ the "^" operator is a bitwise XOR. It does not work for raising to a power. The x << n is...
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 Free
Top 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
@luisivan, it looks like I received it. in this time I setup metamask and bounty program properly. Thank you!
@oivoodoo we are confirming bounties now, payout should arrive shortly