Skip to content

Fixed-accurate big number in C#, Made for incremental game. WOW SO BIG NUMBER

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

Yukinyaa/BigFloat

Repository files navigation

BigFloat

Fixed-accurate big number in C#, Made for incremental game

WOW SO BIG NUMBER

Features

Two types. BigFloat, BiggerFloat.

BigFloat has capacity of 9ee18 (or 9.99999e+(9.22e+18))

BiggerFloat has no limits in size.

Basic operations like + - / * ABS etc. Test shows 5 digit accuracy(is being tested though)

How to use

Using UPM

Add https://github.com/Yukinyaa/BigFloat.git at your package manager. See Guide for detailed instruction.

Oter use

This package is designed for UnityEngine use.

To use outside unity, change m to double(or decimal for max accuracy) and Mathf to Math then there should be no problem.

Contribution

More test cases are always welcome.

DISCLAMER

Code is fresh and not tested thoroughly. provided AS-IS

Implimentation

Expressed by scientific notation. (e.g. 1.23e456 or 1.23E+456)

Exponent(1.23 part on example) is float, significand(456 part on example) is long for BigFloat, and BigInteger in BiggerFloat.

Parsing may have some loss in precision, but designed to precise up to 9~10 digits.

Contact

Discord Shield

About

Fixed-accurate big number in C#, Made for incremental game. WOW SO BIG NUMBER

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages