From: Michael R. <re...@eu...> - 2005-06-03 17:16:59
|
> I create a widget of text class and read the value with 'expression > readwraptemp()' > It shows an * instead of 31 which was the board temp last night. > temp = ((((temp && 0x00FF)<< 9) + (temp >> 8)) >> 3) / 2; > qprintf(val, 9, "%d", temp); > SetResult(&result, R_STRING, &val); Why not return temp as a numeric value? double val=temp; SetResult(&result, R_NUMBER, &val) (SetResult expects a double* with R_NUMBER, therefore you have to use a 2nd variable) bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |