From: Luis C. <lfc...@lf...> - 2005-06-03 22:07:39
|
Michael Reinelt wrote: > >> 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) > > > Perfect, this is exactly what I needed! >(SetResult expects a double* with R_NUMBER, therefore you have to use a >2nd variable) > > >bye, Michael > > > And it was also the widget size ;) THANKS!!! Luis |