News for hackers. Stuff that matters.
Re:Return True to Win by XaspR8d on Friday August 12, 2016 @11:26AM (#12276423)
So you disagree with the IEEE floating point specification, then? Javascript is directly following spec there.
Re:Return True to Win by effie on Friday August 12, 2016 @05:39PM (#12278992)
Do you think that such rule for NaN state is useful?
Re:Return True to Win by astrobe_ on Friday August 12, 2016 @01:57PM (#12277510)
Does that spec forces you to implement equality test between floating point numbers?
Re:Return True to Win by Zarel on Friday August 12, 2016 @03:33PM (#12278177)
...yes? I'm not sure exactly what you're asking here, though.
Re:Return True to Win by astrobe_ on Friday August 12, 2016 @07:56PM (#12279554)
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.
Re:Return True to Win by Myrmornis on Friday August 12, 2016 @08:59PM (#12279709)
So disallow the direct operator but allow equality to be deduced indirectly by usage of > < >= <= ?