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

Several fixes and touch ups (v1.4.1?) #157

Closed MathCookie17 closed 6 months ago

MathCookie17 commented 7 months ago

Changes made:

Explanations:

I'm not sure if any of these changes break anything (especially normalization of infinities - for all I know, that might break something that I'm unaware of), so if you're opposed to any of these changes, Patashu, just let me know so we can figure out which of these should be implemented (or changed - for example, if there's a better way to fix ssqrt than just falling back on linear_sroot, since sqrt has its own implementation separate from pow).

MathCookie17 commented 6 months ago

Another change has been made: floor and ceil weren't working correctly on negative numbers of layer 0, so I fixed those.