Razenpok / BreakInfinity.cs

Double replacement for numbers that go over 1e308
MIT License
212 stars 33 forks source link

BreakInfinity.cs

A C# port of break_infinity.js - a solution for incremental games which 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.

Installation

Just drop BigDouble.cs file into your Scripts folder and use BigDouble type instead of double in your scripts

BigDouble

BigDouble is a double replacement for very large numbers.

ToString() Formats

Credits

Patashu - for amazing library and major effort in porting to C#