microsoft / microsoft/PowerToys

In PowerToys Run, =pow(x,y) function x and y are switched.

Open Beginner friendly
#48,264 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Needs-Triage Product-PowerToys Run
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

### Microsoft PowerToys version

v0.99.1

### Installation method

PowerToys auto-update

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

- Run calculation in PowerToys run, for example "=pow(2 , 3)"
- Read output
- Be very confused about your math results :)

### ✔️ Expected Behavior

=pow(x,y) returns x^y

For example "=pow(2 , 3)" should return 2^3 as in [documentation](https://learn.microsoft.com/en-us/windows/powertoys/run#calculator-plugin).

"Power of x | pow( x, y ) | Calculate a number (x) raised to the power of some other number (y)."

### ❌ Actual Behavior

=pow(x,y) returns y^x

For example "=pow(2 , 3)" returns 3^2

Image

Image

### Upload Bug Report ZIP-file

_No response_

### Additional Information

Just =x^y works as expected though.

### Other Software

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the PowerToys Run calculator plugin and trace the pow(x,y) function using the documented example and the reproduction `=pow(2, 3)`. Confirm that the first argument is treated as x and the second as y, then rerun the example to verify it returns 2^3.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.