If I remember correctly, the hash function for doubles in Nim is converted over 
from LUA. In lua double are often used as integers because for the most part 
lua did not have integers like javascript. Therefore the hash function was 
chosen to optimize this use case.

Reply via email to