Skip to content

Conversation

@quagmt
Copy link
Owner

@quagmt quagmt commented Nov 14, 2024

Issue

Description

  • Deprecate PowInt and replace it by PowInt32(e int32) (decimal, error) to handle 0^0 and 0^(negative) correctly.
  • PowInt: 0 pow any integer will return 0
  • PowInt32: 0^0 = 1, 0^(negative integer) will return error

@codecov
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.97%. Comparing base (a5482f2) to head (f929617).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   95.89%   95.97%   +0.08%     
==========================================
  Files           5        5              
  Lines        1752     1789      +37     
==========================================
+ Hits         1680     1717      +37     
  Misses         48       48              
  Partials       24       24              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@quagmt quagmt merged commit 1307249 into master Nov 14, 2024
9 checks passed
@quagmt quagmt deleted the fix/pow-int branch November 14, 2024 15:54
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.

2 participants