Re: can't figure this out

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie... run this

sequence screenTable, tmp

screenTable = {0,0,0,0,0,0,2,8}


printf(1,"%d  %d\n",{screenTable[8],screenTable[7]})
tmp = sprintf("%d",screenTable[8])&"."&sprintf("%d",screenTable[7])
printf(1,"%4.2f\n",tmp)

tmp = gets(0)
 
 

...george
----- Original Message ----- 
From: "Bernie Ryan" <xotron at localnet.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, August 28, 2001 6:33 PM
Subject: RE: can't figure this out


> 
> 
> George Walters wrote:
> > Here's the code...
> > 
> >  printf(1,"%d  %d\n",{screenTable[i][8],screenTable[i][7]})        -- 
> >  this
> > prints a 9 and a 2  so table8 is 9 and table7 is 2
> > 
> >    tmp =
> > ntf("%d",screenTable[i][8])&"."&sprintf("%d",screenTable[i][7])     -- 
> > if i
> > print this with a printf i get 57.00 ???????
> > 
> > why is tmp not 9.2 ??
> > 
> > 
> george:
> 
>   Are you sure that the value [i] is the same? Try printing it
>   out at the same point in your program loop
> Bernie
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu