www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Wish: Variable Not Used Warning

reply Era Scarecrow <rtcvb32 yahoo.com> writes:
 superdan Wrote:
 a / b is never larger than a (cept for signed/unsigned

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.)
Jul 11 2008
next sibling parent Markus Koskimies <markus reaaliaika.net> writes:
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

a = -10; b = -5

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

$ python -c "print -10/-5" 2 $
Jul 11 2008
prev sibling next sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Era Scarecrow wrote:
 superdan Wrote:
 a / b is never larger than a (cept for signed/unsigned

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
Jul 11 2008
prev sibling parent Robert Fraser <fraserofthenight gmail.com> writes:
Era Scarecrow Wrote:

 superdan Wrote:
 a / b is never larger than a (cept for signed/unsigned

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
Jul 11 2008