Strange multiplication (to me anyway!)
Does anyone know why this line of code would give this value!?long l = 5965*5965*67; (actual answer should be 2 383 942 075)In my debugger it says:long l = -1911025221Any help appreciated!
[223 byte] By [
MutDa] at [2007-11-26 20:59:12]

Thanks, that worked for when i'm using explicit numbers, how do I get it to do the same thing for this;long l = (a*b*c) + 1;Many thanks again.
MutDa at 2007-7-10 2:29:28 >

> Thanks, that worked for when i'm using explicit
> numbers, how do I get it to do the same thing for
> this;
Cast one of them to a long.
long l = (long)a * b * c + 1;
Now give the Doc a Duke! He needs his star.