I once encountered an old database using floats as its primary keys. This was in a fairly popular piece of manufacturing software from the 90s.
>"Arithmetic operations on signaling NaNs turn them into quiet NaNs with a different, but often similar, bit pattern. However, on some processors merely copying a signaling NaN also performs that conversion. In particular, copying a signaling NaN to return it to the calling method may perform this conversion."
Source: https://docs.oracle.com/javase/7/docs/api/java/lang/Double.h...
It doesn't work in the pathological case though as any float has a fixed number of bits, and I see the article has been amended with a note.