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
122 stars 46 forks source link

`Decimal.exp(-1000).eq(Decimal.exp(1000))` is true #33

Closed dan-simon closed 5 years ago

dan-simon commented 5 years ago

They're both high positive numbers (I think they're both what Decimal.exp(1000)) should be). Decimal.exp(-100).eq(Decimal.exp(100)) is false, which makes me think this only happens over infinity. I think this might be at least partially the cause of #32 .

Patashu commented 5 years ago

Thanks, this is indeed the fix for both.