Math.exp() 对于 bigInt?

Math.exp() for bigInt?

我怎样才能达到 Math.exp(), i.e. e ^ argument for BigInt 的效果?

我会尝试 bigInt(Math.E).pow(2000) 或类似的,但 bigInt 只能处理整数,不能处理浮点数。

我想我实际上误解了我自己的问题 - 虽然我想要 运行 exp 的值是使用 BigInts 计算的,但它仍然只有几位数。

Math.exp() 事实上我想要的。