Re: can't figure this out

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

Hi George,

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

-- This works
tmp=sprintf("%d",screenTable[i][8]&"."&screenTable[i][7]) -- tmp will be the
numeric value of 9.2

-- This doesn't work
--tmp=sprintf("%d",screenTable[i][8])&"."&sprintf("%d",screenTable[i][7]) --
tmp will be a sequence value of{57'9',46'.',50'2'}

> why is tmp not 9.2 ??
It's not 9.2 because you are concatenating the value of Table[i][8] and "."
and Table[i][7], which equals {57'9',46'.',50'2'}

Chris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu