Thread View: comp.unix.questions
2 messages
2 total messages
Started by OLIVIER.DISSAUX
Mon, 31 May 1999 00:00
Aide Conversion Flottant Unix motorola vers intel
Author: OLIVIER.DISSAUX
Date: Mon, 31 May 1999 00:00
Date: Mon, 31 May 1999 00:00
18 lines
1583 bytes
1583 bytes
J'ai un probl�me dans la conversion d'un nombre flottant issu du monde unix pour le convertir vers un flottant utilis� sous windows micro intel Notamment quand le nombre est n�gatif au d�part je n'arrive pas � retrouver le nombre n�gatif en sortie Quelqu'un peut il m'aider et si possible me renvoyer un petit programme C simple de conversion dans un sens et dans l'autre. Vous pouvez m'envoyer la r�ponse dans le newgroup mais aussi si possible � l'@ olivier.dissaux@afoc.alcatel.fr Mon flottant est cod� sur 4 bits Quand le nombre est positif il n'y a pas de probl�me Merci d'avance
Re: Aide Conversion Flottant Unix motorola vers intel
Author: Rainer Temme
Date: Tue, 01 Jun 1999 00:00
Date: Tue, 01 Jun 1999 00:00
23 lines
1765 bytes
1765 bytes
OLIVIER.DISSAUX <OLIVIER.DISSAUX@wanadoo.fr> wrote: > J'ai un probl�me dans la conversion d'un nombre flottant issu > du monde unix pour le convertir vers un flottant utilis� sous windows > micro intel > > Notamment quand le nombre est n�gatif au d�part je n'arrive pas � retrouver > le nombre n�gatif en sortie > > Quelqu'un peut il m'aider et si possible me renvoyer un petit programme C > simple de conversion dans un sens et dans l'autre. > > Vous pouvez m'envoyer la r�ponse dans le newgroup mais aussi si possible � Dear Olivier, the usual language in comp.unix.questions is english (for the convenience of all of us) If you fell you have to send a crossposting like this please keep those newsgroups usually using english apart from those usually using french. For your problem...did you try just to swap bytewise (byte 1 <-> byte 4) (byte 2<-> byte 3) ? That should be all that's needed. (This helped me to move floats from a MIPS-System to an Intel). Regards Rainer
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads