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

Does that spec forces you to implement equality test between floating point numbers?


...yes? I'm not sure exactly what you're asking here, though.


I'm asking if it is really a good idea for a language to provide equality/inequality for floating point numbers when it's often mistake to do that.


So disallow the direct operator but allow equality to be deduced indirectly by usage of > < >= <= ?




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

Search: