Float#negative? reports negative zero as not negative
Is this intended behaviour?
irb(main):001:0> neg_zero = -0.0 => -0.0 irb(main):002:0> neg_zero.negative? => false irb(main):003:0> neg_zero < 0 => false
It happens because
< 0. My understanding of IEEE floating point is that negative zero is not less than zero, but I think it should still report as negative.