L
LSW
I'm using Borland Turbo C++ 3.0 to develop an embedded system to shift
data around a network. At the moment we receive a string of bytes over a
serial line and reassemble them into floating point values.
If the bytes are not assembled correctly then it's possible to produce
some floating point values that aren't 'genuine' numbers. Does anyone
have any suggestions on how to check a float/double is valid (i.e.
checking for NANs, infinity etc.)?
Turbo C++ doesn't seem to have much support for this.
Thanks,
data around a network. At the moment we receive a string of bytes over a
serial line and reassemble them into floating point values.
If the bytes are not assembled correctly then it's possible to produce
some floating point values that aren't 'genuine' numbers. Does anyone
have any suggestions on how to check a float/double is valid (i.e.
checking for NANs, infinity etc.)?
Turbo C++ doesn't seem to have much support for this.
Thanks,