pow exponent type issue

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 24 12:49:33 PDT 2016


On Wednesday, 24 August 2016 at 19:41:35 UTC, ag0aep6g wrote:
>
> -y1 is -1. But -y2 is uint.max, i.e. a pretty large positive 
> number.
>
> The 'u' in "uint" stands for "unsigned". That is, it doesn't 
> know negative numbers. Dont' use uint when you need negative 
> numbers.

Ahh, doh.


More information about the Digitalmars-d-learn mailing list