Thread overview
Re: Wish: Variable Not Used Warning
Jul 11, 2008
Era Scarecrow
Jul 11, 2008
Markus Koskimies
Jul 11, 2008
Bill Baxter
Jul 11, 2008
Robert Fraser
July 11, 2008
> superdan Wrote:
> > a / b is never larger than a (cept for signed/unsigned
> mixed shit).
> 
> a = -10; b = -5

 result is -15, done on a simple calculator (unless Win32 Calc.exe is wrong)

 Wow, this just reminds me how much i perfer using non-signed numbers for all my personal work.

 This reminds me, just as a little question nothing big. Is there a BigInt class we're suppose to be using or that's for D? (Besides trunk, that one there was talk of not being sure about the license.)



July 11, 2008
On Fri, 11 Jul 2008 13:04:04 -0700, Era Scarecrow wrote:

>> superdan Wrote:
>> > a / b is never larger than a (cept for signed/unsigned
>> mixed shit).
>> 
>> a = -10; b = -5
> 
>  result is -15, done on a simple calculator (unless Win32 Calc.exe is
>  wrong)

$ python -c "print -10/-5"
2
$
July 11, 2008
Era Scarecrow wrote:
>> superdan Wrote:
>>> a / b is never larger than a (cept for signed/unsigned
>> mixed shit).
>>
>> a = -10; b = -5
> 
>  result is -15, done on a simple calculator (unless Win32 Calc.exe is wrong)

Uhh, I think your method of entry was wrong.  It's +2.
Y'know I don't think this problem was meant to require a calculator...

--bb
July 11, 2008
Era Scarecrow Wrote:

> > superdan Wrote:
> > > a / b is never larger than a (cept for signed/unsigned
> > mixed types).
> > 
> > a = -10; b = -5
> 
>  result is -15, done on a simple calculator (unless Win32 Calc.exe is wrong)

You sure you're not using one of these calc.exe versions?:

http://thedailywtf.com/Articles/OMG-Finalist-Week-Conclusion--Voting.aspx