Convert to/from a string using scientific notation and send as a string. Greg > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Claudio Tagliola > Sent: Saturday, August 24, 2002 11:32 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: [OT] Floating point formats > > > Hello all, > > > I have a problem which doesn't belong here but I'm still turning to the > piclist 'cause I know I can find a lot of skilled ppl here, who maybe can > solve my problem. > > I'm working on an 186 AMD based micro. This this is programmed in Borland > C++ 5. The problem I have is with floating points. As this this > doesn't have > a fp processor onboard, I'm using Borlands fp emulation library (emu.lib). > What I am trying to do is send a 32 bit float value over a certain > connection, byte for byte. However, If I put them all together > again on the > other side and hope to get the same float back, I am mistaken. > Therefore, I > came to the conclusion the emu.lib uses a non standard (i.e. IEEE754), fp > format. And I am at a loss which one that should be. Extensive > googling only > gave me a bunch of unreadable pages and highly arcane info. > > Any ideas for this one? > > > Best regards, > > Claudio Tagliola > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics