Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.22 KB

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