title: Hash function for floats
body: <p>I'm currently implementing a hash table in C++ and I'm trying to make a hash function for floats...</p>
  
  <p>I was going to treat floats as integers by padding the decimal numbers, but then I realized that I would probably reach the overflow with big numbers...</p>
  
  <p>Is there a good way to hash floats? </p>
  
  <p>You don't have to give me the function directly, but I'd like to see/understand different concepts...</p>
  
  <p>Notes: </p>
  
  <ol>
  <li><p>I don't need it to be really fast, just evenly distributed if possible.</p></li>
  <li><p>I've read that floats should not be hashed because of the speed of computation, can someone confirm/explain this and give me other reasons why floats should not be hashed? I don't really understand why (besides the speed)</p></li>
  </ol>