Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Yes, why would you ever want a map with floating point keys?

One possible answer: you're in Javascript or something similar. You wanted integer keys, but all you have is floating-point numbers.



Or.. convert the integers to string form and use that. Wacky nonsense situation averted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: