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

Bug: Incorrect result from multiplication. #5

Closed
ZCG-coder opened this issue Apr 8, 2024 · 2 comments
Closed

Bug: Incorrect result from multiplication. #5

ZCG-coder opened this issue Apr 8, 2024 · 2 comments
Assignees
Labels
T-Bug Type - Bug and unexpected behavior.
Milestone

Comments

@ZCG-coder
Copy link
Owner

Describe the bug

When invoking the multiply function, or using the * operator in Python, an incorrect result may occur.

To Reproduce

Steps to reproduce the behavior:

  1. Create two steppyble numbers in the form of A0...B, e.g.: 203, 2003...
  2. Invoke the * operator to multiply the both.
  3. The result is incorrect. For example:
    >>> steppyble.Number("2003") * steppyble.Number("2003")
    4606900
    >>> 2003 * 2003
    4012009

OS

  • ALL PLATFORMS
@ZCG-coder ZCG-coder added the T-Bug Type - Bug and unexpected behavior. label Apr 8, 2024
@ZCG-coder ZCG-coder self-assigned this Apr 8, 2024
@ZCG-coder
Copy link
Owner Author

It turns out that power is affected by this too.

@ZCG-coder
Copy link
Owner Author

Fixed in 30d1cde.

@ZCG-coder ZCG-coder added this to the First Release milestone Apr 17, 2024
@ZCG-coder ZCG-coder changed the title Incorrect result from multiplication. Bug: Incorrect result from multiplication. Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Type - Bug and unexpected behavior.
Projects
Status: Done
Development

No branches or pull requests

1 participant