Is this a bug or a VERY sneaky case?

Rumbu rumbu at rumbu.ro
Sat Dec 25 17:29:37 UTC 2021


On Saturday, 25 December 2021 at 13:39:14 UTC, Temtaime wrote:
> To get correct results use
>
> fnum = u64(-num) + 1;
>
> there's no bug.
>
> Also get rid of your *_MAX, *_MIN.
> Use u8.max, i8.min built-in properties etc.

And max length of a integral can be obtained using 
```log10(n)+1```, you don't need a bunch of static ifs.


More information about the Digitalmars-d mailing list