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
121 stars 44 forks source link

Fix d_lambertw bugs #82

Closed mcpower closed 2 years ago

mcpower commented 2 years ago

Notably, d_lambertw wasn't working correctly with 0 and 1 as it was using === to convert Decimals instead of .eq.

This also fixes a minor Decimal -> number -> Decimal conversion which loses precision (presumably only when layer > 0?), as well as generally being a bit slow.