Skip to content

Evaluate with scope ignores BigNumber #2666

Answered by josdejong
saschb2b asked this question in Q&A
Discussion options

You must be logged in to vote

This can be indeed confusing.

The behavior is:

  • when any function receives numeric input (number, BigNumber, etc.), it uses that input as is.
  • when any function needs to parse a string into a numeric value, it uses config.number to determine how to parse the string (i.e. into a number, BigNumber, ...)

Does that help?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josdejong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1689 on August 17, 2022 12:32.