Skip to content

HugeInt + - operators are not working correctly #28

Description

@potat-dev

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfix laterNot very important errors that can be solved later

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions