Re: can't figure this out
- Posted by Chris Bensler <bensler at telus.net> Aug 28, 2001
- 454 views
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