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

Remove `as` cast in pow10 #85

Closed mcpower closed 2 years ago

mcpower commented 2 years ago

Generally, as casts in TypeScript are discouraged. This PR removes the as cast by typing a more precisely (it's handled as a Decimal, not specifically instance of this).