Thread overview
Integer without restrictions
Mar 15, 2020
...
Mar 15, 2020
Paul Backus
Mar 15, 2020
...
Mar 15, 2020
Dennis
March 15, 2020
How to create an integer without restrictions of size? Do I need to create a new class or there is a type of integer that doesn't have any restrictions in size?
March 15, 2020
On Sunday, 15 March 2020 at 19:02:00 UTC, ... wrote:
> How to create an integer without restrictions of size? Do I need to create a new class or there is a type of integer that doesn't have any restrictions in size?

http://dpldocs.info/experimental-docs/std.bigint.html
March 15, 2020
On Sunday, 15 March 2020 at 19:03:54 UTC, Paul Backus wrote:
> On Sunday, 15 March 2020 at 19:02:00 UTC, ... wrote:
>> How to create an integer without restrictions of size? Do I need to create a new class or there is a type of integer that doesn't have any restrictions in size?
>
> http://dpldocs.info/experimental-docs/std.bigint.html

And if I need to create very large value, how to use GMP library (It isn't described in that post)?
March 15, 2020
On Sunday, 15 March 2020 at 19:07:05 UTC, ... wrote:
> And if I need to create very large value, how to use GMP library (It isn't described in that post)?

You can use C bindings [1], look up examples in C and do the same in D, or use a high-level wrapper [2].

[1] https://code.dlang.org/packages/libgmp
[2] https://code.dlang.org/packages/gmp-d