From: "Chris Hird" <chrish@xxxxxxxxxxxxxxxxx>
Thanks, I thought the cast would have told the compiler to reserve a
storage space for a double. I suppose because I added the .0 to
each of the values it know that they were floats/doubles?
However if I use the following it also gives an incorrect result.
Unsigned long long test = 0;
Test = (2482884 * 1024);
I get 18446744071957057536 that is not wrapping but it certainly
gives me the wrong answer?? Why would that happen?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.