Closed vschst closed 6 years ago
For example, I have a big number:
const str = "0.221410676794694825" const number = new BigNumber(str)
I need to get an array of two elements - an integer part and a decimal, that is: ["0", "221410676794694825"]. Is there such a possibility in your library?
["0", "221410676794694825"]
You can do number.toString().split(".")
number.toString().split(".")
Thank you, useful thing. Can be closed issue.
For example, I have a big number:
I need to get an array of two elements - an integer part and a decimal, that is:
["0", "221410676794694825"]
. Is there such a possibility in your library?