BigInt.toString

Ruby The Roobster rubytheroobster at yandex.com
Thu Aug 4 01:38:11 UTC 2022


On Thursday, 4 August 2022 at 01:32:15 UTC, Salih Dincer wrote:
>
> I guess I wrote the following anything like that you want.
>
> ```d
> void main()
> {
>   import std.bigint,
>          std.string : representation;
>
>   BigInt i = 1001;
>   auto val = i.to!(dchar[]);
>   assert(val.representation == [49, 48, 48, 49]);
> }
> ```
>
> Is that what you want?
>
> SDB at 79

Not exactly.  Anyways, it has already been solved.


More information about the Digitalmars-d-learn mailing list