Skip to content
johnvlittle edited this page Jul 5, 2013 · 14 revisions

Welcome to the big.js wiki!

Sorry, Silly question: how do you convert from a Big object back into a number so the results can be used elsewhere? I only see methods to create strings (e.g. toFixed)

big.js: minimalist; easy-to-use; precision specified in decimal places; precision applied to division only; 4 rounding modes.

bignumber.js: configuration options; NaN; Infinity; precision specified in decimal places; precision applied to division only; random numbers; base conversion; 9 rounding modes; modulo modes; modular exponentiation.

decimal.js: configuration options; NaN; Infinity; non-integer powers, exp, ln, log; trigonometric functions; precision specified in significant digits; precision always applied; random numbers; 9 rounding modes; modulo modes; binary, octal, and hexadecimal; binary exponential notation.

Clone this wiki locally