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

HugeInt + - operators are not working correctly #28

Open
potat-dev opened this issue Apr 18, 2022 · 1 comment
Open

HugeInt + - operators are not working correctly #28

potat-dev opened this issue Apr 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working fix later Not very important errors that can be solved later

Comments

@potat-dev
Copy link
Owner

implemented + and - operators for HugeInt class:

https://github.com/CyberPotat42/SUAI-Labs/blob/dde62c41c861727fae185773a0c00cd5660e65a9/Semester_2/Lab_12/HugeInt.cpp#L170

https://github.com/CyberPotat42/SUAI-Labs/blob/dde62c41c861727fae185773a0c00cd5660e65a9/Semester_2/Lab_12/HugeInt.cpp#L199

but they are not working properly:

618 + 42 = 660
618 - 42 = 6
-618 + 42 = 660
-618 - 42 = 6
618 + -42 = 660
618 - -42 = 6
-618 + -42 = 660
-618 - -42 = 6
@potat-dev potat-dev added bug Something isn't working fix later Not very important errors that can be solved later labels Apr 18, 2022
@potat-dev potat-dev self-assigned this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix later Not very important errors that can be solved later
Projects
None yet
Development

No branches or pull requests

1 participant