abs and minimum values

Bruce Carneal bcarneal at gmail.com
Fri Oct 29 15:29:34 UTC 2021

On Friday, 29 October 2021 at 14:23:49 UTC, Kagamin wrote:
> Unsigned integers aren't numbers.
> assert(-abs(1)<0);

Unsigneds approximate whole numbers of course (truncated on one 
side).  Likewise signeds approximate integers (across a 
restricted interval).  As always, we need to be careful with 

More information about the Digitalmars-d-learn mailing list