Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct power function logic and module value typo #616

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GideonBature
Copy link
Contributor

  • Corrected the logic in the power function to handle the zero exponent case correctly. Previously, the function was set to abort when num2 == 0. Updated it to return 1 instead, aligning with the mathematical rule that any number raised to the power of zero equals one.

  • Fixed a typo in value of the environment variable REACT_APP_MODULE_NAME. The module value was mistakenly set to "calculator_l12" and has been corrected to "calculator".

- Corrected the logic in the power function to handle the zero exponent case correctly.
  Previously, the function was set to abort when `num2 == 0`. Updated it to return `1` 
  instead, aligning with the mathematical rule that any number raised to the power 
  of zero equals one.
  
- Fixed a typo in value of the environment variable `REACT_APP_MODULE_NAME`. The module value was 
  mistakenly set to `"calculator_l12"` and has been corrected to `"calculator"`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant