[Tecnica] Visualizzare un numero in complemento a due

Michele "O-Zone" Pinassi o-zone a zerozone.it
Ven 23 Gen 2009 09:54:31 GMT


On Thursday 22 January 2009 21:06:43 Szymon Tomasz Stefanek wrote:
> unsigned char b[2];                      
>   b[0] = b2;                                
>   b[1] = b1;                                
>
>   short * p = (short *)b;
>
>   printf("FLOAT: %f\n",(double)*p / 256.0);

Grazie a tutti per le risposte ! Purtroppo uso SDCC che ha un pessimo supporto 
dei double percui ho bisogno di una soluzione pił facile :-)

Grazie, Michele

-- 
O-Zone ! No (C) since 1996
On the road with VFR VTec 2002 "Vuffy", on the net with Slackware !
Home @ http://www.zerozone.it and photos @ 
http://myphotos.zerozone.it/user/o-zone




Maggiori informazioni sulla lista Tecnica