RE: can't figure this out
- Posted by "C. K. Lester" <cklester at yahoo.com> Aug 28, 2001
- 439 views
> 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 ?? What would happen if you used {} in the second assignment? tmp = sprintf("%d", { screenTable[i][8] } )&"."&sprintf("%d", { screenTable[i][7] } )