I am really confused using math.js's bignumber function. When I use their examples in both the console, and within script tags, math.bignumber() returns a Decimal object. How do I use this object to get an actual float to use?
Example code:
math.add(math.bignumber(0.1), math.bignumber(0.3))
Returns:
Decimal {s: 1, e: -1, d: [5000000]}
Am I doing something wrong? Is there something wrong in the math.js file I downloaded?