|
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);
Printf("%llu\n",test);
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.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.