Obscure Isssue #1

Ruby The Roobster rubytheroobster at yandex.com
Fri Aug 5 17:22:39 UTC 2022


On Friday, 5 August 2022 at 17:02:48 UTC, Ruby The Roobster wrote:
> On Friday, 5 August 2022 at 16:58:25 UTC, Ruby The Roobster 
> wrote:
>> On Friday, 5 August 2022 at 15:07:18 UTC, H. S. Teoh wrote:
>> [SNIP]
>>> In other words, you're trying to construct a BigInt with a 
>>> value of 10^18030 (a number with 18030 digits) and wondering 
>>> why the computer is taking forever to compute the value. :-D
>>>[SNIP]
>>>
>>> T
>> I have no idea how the program generated a 18k+ digit number, 
>> but apparently changing the `+` to a `*` on line 158 solved 
>> the problem.
>
> Oop.  Just realized that was because I commented out the line 
> involving the bug

Turns out that using negative numbers breaks it.


More information about the Digitalmars-d-learn mailing list