-
Notifications
You must be signed in to change notification settings - Fork 0
Update Maths.cs #8
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,5 @@ | ||||||
| using System.Text.RegularExpressions; | ||||||
| using System; | ||||||
| using System.Text.RegularExpressions; | ||||||
| using Computer.V2.Lib.Exceptions; | ||||||
|
|
||||||
| namespace Computer.V2.Lib | ||||||
|
|
@@ -57,8 +58,9 @@ private static void Pow(ref string expression) | |||||
| //prevent exponential notation to a degree, to big of a number will have a result of infinity; | ||||||
| expression = expression.Replace(match, res.ToString("0." + new string('#', 9999))); | ||||||
| } | ||||||
| catch(System.FormatException) | ||||||
| catch(Exception) | ||||||
|
||||||
| catch(Exception) | |
| catch(FormatException) |
Copilot
AI
May 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Remove or update the placeholder comment 'test comment' to provide more meaningful context or remove if unnecessary.
Copilot
AI
May 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The comment 'test comment' appears to be leftover debugging text; consider removing or replacing it with a more informative comment that explains the rationale behind the error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider catching a more specific exception (e.g., FormatException) instead of Exception to avoid masking unexpected errors.