Find out what datatype 2008 resolves to. I am thinking that 2008 is
UInt16. Try this:
tmpY = (UInt32) 2008 * (UInt32) 367;
That should make you get the correct value.
On 7/14/2010 3:47 PM, codemaker wrote:
Hi
I compile the following code in metroworks codewarrior v9.3 and I get a wrong
calculation.
UInt32 tmpY = 0;
tmpY = 2008 * 367;
if (tmpY!=736936)
InfoMSG("tmpY=%ld", tmpY);
I get 16040 instead of 736936. Do you know why?
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/