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

Fix subtract() function not working with parameter type other than Big #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andriwagner
Copy link

Added type check of the parameter of the subtract() function. (same as in add() function)
Now subtract() works with a float as a parameter.

I had the problem that the minusEquals() function did not work with a float as a parameter. The problem was that in the subtract() function, the parameters were not converted into a Big before accessing the attribute "exponent" of the parameter.

@bearsy1
Copy link

bearsy1 commented Jul 28, 2024

Beautiful. I was going to say something about this in an issue ticket but this got my project running again. Thank you!

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