The Partridge Family were neither partridges nor a family. Discuss.
Again, thanks for taking a look and helping me correct it, sorry I get a little dense sometimes.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Doing 0/0 should work.
Tried it out and it gave me "-NaN" as a result. Since it's negative it has sign bit set, it also failed to be detected by your initial code, but the new version you posted that does masking seems to work.
Code: Select all
double zero = 0.0f; x.f = zero / zero;
Glad you got it working in the end