-
-
Notifications
You must be signed in to change notification settings - Fork 30
Numbers
Arthur Guiot edited this page May 16, 2018
·
9 revisions
The concept of BigNumber
We use the BigNumber library to do most of our computation. In this docs, if you see a comment with => BigNumber, the output of the function will be a BigNumber instance.
You can create any BigNumber using t.n(x) (where x is your number)
It has the convenience of being able to do float operations without any errors:
0.2 + 0.4 // 0.6000000000000001
t.n(0.2).add(0.4) // 0.6 => BigNumberWe strongly recommend you checking their website to understand how to use it.
Any questions? Don't hesitate to create an issue and tell me about your problem 😊.
Copyright © 2017-2018 Arthur Guiot