简体   繁体   中英

What is the meaning of `c`, `e`, and `s` in bignumber.js?

What are the meanings of the c , e , and s fields in the object produced by bignumber.js ?

For example:

> new BigNumber('1234')
{ c: [1234], e: 3, s: 1 }
> new BigNumber('12345678901234567890')
{ c: [123456, 78901234567890], e: 19, s: 1 }
  • c | coefficient | number[]| Array of base 1e14 numbers
  • e | exponent | number | Integer, -1000000000 to 1000000000 inclusive
  • s | sign | number | -1 or 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM