Skip to content

A replacement for decimal.js for incremental games who want to deal with very large numbers (bigger in magnitude than 1e308, up to as much as 1e(9e15) ) and want to prioritize speed over accuracy.

Notifications You must be signed in to change notification settings

nerdError/break_infinity.js-serializable

 
 

Repository files navigation

Forked from: https://github.com/Patashu/break_infinity.js

My version of break_infinity.js I mostly doing random changes to fit with my game's code!

  • Removed Decimal.toString() and Decimal.toJson(), since it doesn't allow you to use JSON.Stringify() (at least i remember it being so, probably need to recheck that one. but anyway main reason i did it, Decimal object wasn't able to correctly be saved/loaded with json because of it. now it works like a charm)
  • Added doPlus, doMinus, doTimes, doDivide functions, to change a Decimal object in-place, without creating a new one

About

A replacement for decimal.js for incremental games who want to deal with very large numbers (bigger in magnitude than 1e308, up to as much as 1e(9e15) ) and want to prioritize speed over accuracy.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.3%
  • TypeScript 48.7%