I found this post on stackoverflow that Double in HashMap states:
I was thinking of using a Double as the key to a HashMap but I know floating point comparisons are unsafe
But I can't really find out why it is unsafe to use doubles as key in your hashmap. Could you guys explain that to me?