1. ver 4.0 confused again about an error

-- junk.ew 
-- 
-- start junk.exw 
-- Using WIN98 SVN rev 1191 
-- What don't I understand about this conversion ?? 
-- 
-- using a calculator I get #132CD2BF for 3217040639 
-- 
printf(1,"%d\n\n",{3217040639})  -- this is wrong 
printf(1,"#%x\n\n",{3217040639}) -- this is wrong 
printf(1,"%d\n",{#132CD2BF})     -- this returns the correct value 
 
if getc(0) then end if 
-- end junk.exw 
new topic     » topic index » view message » categorize

2. Re: ver 4.0 confused again about an error

bernie said...
-- junk.ew 
-- 
-- start junk.exw 
-- Using WIN98 SVN rev 1191 
-- What don't I understand about this conversion ?? 
-- 
-- using a calculator I get #132CD2BF for 3217040639 
-- 
printf(1,"%d\n\n",{3217040639})  -- this is wrong 
printf(1,"#%x\n\n",{3217040639}) -- this is wrong 
printf(1,"%d\n",{#132CD2BF})     -- this returns the correct value 
 
if getc(0) then end if 
-- end junk.exw 

The number should probably be 321704639.

new topic     » goto parent     » topic index » view message » categorize

3. Re: ver 4.0 confused again about an error

Bernie,

There is no problem with these results are you sure you haven't miss copied something. Like add an extra zero? I tried this with Windows calculator and get teh same results.

Shawn

new topic     » goto parent     » topic index » view message » categorize

4. Re: ver 4.0 confused again about an error

euphoric said...
bernie said...
-- junk.ew 
-- 
-- start junk.exw 
-- Using WIN98 SVN rev 1191 
-- What don't I understand about this conversion ?? 
-- 
-- using a calculator I get #132CD2BF for 3217040639 
-- 
printf(1,"%d\n\n",{3217040639})  -- this is wrong 
printf(1,"#%x\n\n",{3217040639}) -- this is wrong 
printf(1,"%d\n",{#132CD2BF})     -- this returns the correct value 
 
if getc(0) then end if 
-- end junk.exw 

The number should probably be 321704639.

Thanks Yes, I should of used #6FC0224FF

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu