<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any ideas please?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am developing an embedded processor controller 
that&nbsp;needs to&nbsp;continuously communicate&nbsp;data over a&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My data&nbsp;values could be&nbsp;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&nbsp;as 4 x char(bytes) + a 
checksum and terminator.</FONT></DIV>
<DIV>&nbsp;</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&nbsp;t</FONT></FONT><FONT face=Arial 
size=2>he&nbsp;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.&nbsp; A Pascal 
demo would be a great help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; Colin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>