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

Invalid type passed to bignum constructor #125

Closed
VirtuousDeath opened this issue Apr 21, 2020 · 1 comment
Closed

Invalid type passed to bignum constructor #125

VirtuousDeath opened this issue Apr 21, 2020 · 1 comment

Comments

@VirtuousDeath
Copy link

VirtuousDeath commented Apr 21, 2020

hi,
I am experiencing this issue with your bignum package.

I have downloaded the types for bignum and it forces me to create an instance of
the default export.

What am I doing wrong?
here is some of the code I made for this issue to happen,
strangely it worked sometime ago

...
this.value = new bignum(value, base).abs().toString()
...

I wish you can help,
thanks


May sound stupid, but can we actually convert bases with this version of bignum?
As Example:

this.value = bignum(value, base)

Could be a good implementation, and set default base to 10.
Anyways, I wish to check that, If it doesnt have I need to know

@VirtuousDeath
Copy link
Author

Realised that bignum doesnt have support for decimal numbers

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

No branches or pull requests

1 participant