My new game needed to work with a very large numbers (such as 1000000000000000 and etc). How can I perform a good realisation of it?
Im trying to use BigInteger but completly didnt understand how to gain this in game permamently.
Help me plz
You can use BigInteger to store your big values for integers.
So you can define a variable ‘myInteger’ of type BigInteger like:
System.Numerics.BigInteger myInteger = 1000000000000000;
// Add a reference to the System.Numerics assembly at the top using System.Numerics; // Use BigInteger as you would use an int anywhere in that file BigInteger myInteger = 1000000000000000;
Also instead of BigInteger you can use Int64 structure.