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.

Add power operator (^)

See original GitHub issue

Instead 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:closed
  • Created 6 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
oivoodoocommented, Jan 24, 2018

@luisivan, it looks like I received it. in this time I setup metamask and bounty program properly. Thank you!

0reactions
luisivancommented, Jan 24, 2018

@oivoodoo we are confirming bounties now, payout should arrive shortly

Read more comments on GitHub >

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

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