<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any ideas please?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am developing an embedded processor controller
that needs to continuously communicate data over a link to
another. The baud rate is limited to 9600 Bd. The numeric range of each data
packet will need to be at least +/ 12 digits. I am concerned that the time taken
to send this data may too high if sent as strings of characters and I would like
to limit this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My data values could be easily
represented within the four bytes of a 'Single' which is the smallest Real type
and would give me a range of </FONT><FONT face=Arial size=2>1.5 x 10 ^-45 .. 3.4
x 10 ^38. This being the case I could send the data as 4 x char(bytes) + a
checksum and terminator.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>My question is - What is the simplest way of doing
the conversion in each direction. <FONT face=Arial size=2>I have to deal with
two different microprocessors, but t</FONT></FONT><FONT face=Arial
size=2>he maths libraries I have in the compilers are not too bad. I've had
a play but seem to be getting into problems with type casting. A Pascal
demo would be a great help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Colin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>