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

Getting Property 'prec' does not exist on type 'Big'. #152

Closed
pRoy24 opened this issue Jan 9, 2021 · 1 comment
Closed

Getting Property 'prec' does not exist on type 'Big'. #152

pRoy24 opened this issue Jan 9, 2021 · 1 comment

Comments

@pRoy24
Copy link

pRoy24 commented Jan 9, 2021

On version 6.0.03 getting this error when trying to use the prec method.

@pRoy24
Copy link
Author

pRoy24 commented Jan 9, 2021

Nevermind needed to cast the value to any, since typescript couldn't find the type definition

const r = new Big(value)
const preciseValue = (r as any).prec(sd)

worked

@pRoy24 pRoy24 closed this as completed Jan 9, 2021
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