D
Dik T. Winter
>
> My usage was consistent to the OP's:
>
> A C double can be aliased by an array of unsigned char, to which
> any desired byte pattern may be written. Is there any somewhat
> portable way of assigning a byte pattern such that the result
> will, with very high probability, _not_ count as a valid double?
>
> And, unless I'm missing something, you've been unable to produce such a
> bit pattern, so your contributions to this thread have consisted of pure
> noise...
The OP continues with:
I ask because I'm in search of a mechanism for flagging "missing
values" in an array of doubles. I'm aware that the "best" (fully
portable) way probably involves setting up an ancillary array, or
making the basic data-type not a straight double but a struct of
some sort. But in context this would be a royal pain. One
common solution is to flag "missing" with a specific value such
as -999.0. I'm wondering if that can be improved upon without
resorting to a wider data type.
a bit pattern not generated by the floating point processor serves his
purpose very well.