> ## Content Index
> Fetch the complete content index at: https://blogs.remobjects.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# .NET 4.0 BigInteger support
- URL: https://blogs.remobjects.com/2010/01/25/net-4-0-biginteger-support/
- Published: 2010-01-25T10:07:35.000Z
- Updated: 2018-08-22T06:17:46.000Z
- Author: Carlo Kok
- Tags: #Import 2026-08-17 20:17

The February release of Delphi Prism will include support for the new .NET 4.0 “BigInteger” type for all integer constants. [BigInteger](http://msdn.microsoft.com/en-us/library/system.numerics.biginteger%28VS.100%29.aspx?ref=blogs.remobjects.com) is a new class that let’s it’s users define an arbitrarily large integer. Using this new type for integer constants is simple in Delphi Prism:

| var r :\=6985743574365784365432758943759843265983427594356349776534765743928657843567843625437564392067452985674398563429;var y :\=8574398256943285643296524390; Console.WriteLine(y); Console.WriteLine(r); y :\= r \- y; Console.WriteLine(y); |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

Output:

| 8574398256943285643296524390 6985743574365784365432758943759843265983427594356349776534765743928657843567843625437564392067452985674398563429 6985743574365784365432758943759843265983427594356349776534765743928657843567843625428989993810509700031102039039 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Any constant that does not fit the largest type supported ((U)Int64) will become a BigInteger, or fail compiling if the new type isn’t referenced. BigInteger acts and works like a regular integer type, although it has some extra operations, like GreatestCommonDivisor, Remainder, Pow(er) and conversions to and from regular integer types.