Patashu / break_eternity.js

A Javascript numerical library to represent numbers as large as 10^^1e308 and as small as 10^-10^^1e308. Sequel to break_infinity.js, designed for incremental games.
MIT License
120 stars 43 forks source link

`new Decimal("(e^x)1")` returns `Decimal` with negative `layer` if `x` is negative #167

Closed James103 closed 1 month ago

James103 commented 4 months ago

For example, new Decimal("(e^-8.1)1") returns a Decimal whose layer is -8.1.

Similarly, new Decimal("(e^-22.1)1") returns a Decimal whose layer is -22.1.

Both Decimal objects have invalid layer values and may not work properly with operations.

MathCookie17 commented 1 month ago

This is a pretty useless case, seeing as (e^x)1 for any x <= -2 is automatically NaN, but fixed anyway.