Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 15, 2020 Integer without restrictions | ||||
---|---|---|---|---|
| ||||
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 Re: Integer without restrictions | ||||
---|---|---|---|---|
| ||||
Posted in reply to ... | 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 Re: Integer without restrictions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Backus | 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 Re: Integer without restrictions | ||||
---|---|---|---|---|
| ||||
Posted in reply to ... | 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 |
Copyright © 1999-2021 by the D Language Foundation