Say I use arrays of double precison REALs. If it is the case that I do not need all the precision it offers, (but of course more than single precision), then couldn't I use, say the least significant bit to store some boolean information? Do you guys see any flaw in the idea?
If I do this, I could avoid allocation all the memory corresponding that arrays of LOGICAL data would take up. If the effort to mantain and retrieve this data in the least significant bit is worth the memory saved, it may be useful in some situations.
Now, if I had to implement this, how would I go about it? I see lost of bit-wise manipulations for INTEGERs, but is there any way that I can modify bits (in particular, the least significant bit) in a REAL?
Thread Topic:
Question