Variable below zero but if statement doesn't grab?

TheDGuy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 27 11:42:09 PST 2015


On Sunday, 27 December 2015 at 18:03:16 UTC, Bubbasaur wrote:
> On Sunday, 27 December 2015 at 15:53:55 UTC, TheDGuy wrote:
>> Any idea what i am doing wrong?
>> https://www.youtube.com/watch?v=j_VCa-5VeP8
>
> Tell me one thing, what is the value returned?
>
>
> Well It's working here: http://dpaste.dzfl.pl/18b27ea26b08
>
> Maybe you would like to change the code above to look like 
> yours and see what happens?
>
> Bubba.

Okay, thanks. It actually returned the right value but it looked 
like as if it would jump into the 2nd if-statement (as you can 
see on the video). Strange...


More information about the Digitalmars-d-learn mailing list