Y
Hacker News
new
|
ask
|
show
|
jobs
by
XaspR8d
3601 days ago
So you disagree with the IEEE floating point specification, then? Javascript is directly following spec there.
2 comments
effie
3600 days ago
Do you think that such rule for NaN state is useful?
link
astrobe_
3601 days ago
Does that spec forces you to implement equality test between floating point numbers?
link
Zarel
3601 days ago
...yes? I'm not sure exactly what you're asking here, though.
link
astrobe_
3600 days ago
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.
link
Myrmornis
3600 days ago
So disallow the direct operator but allow equality to be deduced indirectly by usage of > < >= <= ?
link