BigInteger
Using the BigInteger
type, your program can represent large integer numbers that are too big to fit into even the largest "native" Integer types (which is 64-bit, and can hold values up to 18446744073709551615 unsigned, and values between -9223372036854775808 and 9223372036854775807 signed).
The BigInteger
type is provided by the .NET framework as a standard type, and as such can be used from all Elements languages on that platform, using the type's APIs.
In Oxygene, special support is provided for BigInteger Literals, allowing you to just write constant BigInteger values out in numerical form, as you would any "normal" integer:
var OneBigNumber := 46587465748654786549365489365978436543926543978563847564372657436578;
.NET Only
The BigInteger
type is available only on the .NET platform.
See Also
- Integers
System.Numerics.BigInteger
in Microsoft's documentation