Hi, I realized I did not test the behavior of all comparison operators. I found > that in Java: > 0.0 == -0.0 is true > -0.0 < 0.0 is false >
As I wrote before, H2 uses Double.compare(x, y), which first checks the sign. > > H2 will say that: > 0.0 == -0.0 is false > -0.0 < 0.0 is true > Yes. H2 does not seem to behave properly when comparing negative zeros to zeros. > Well it depends on what you think is "proper"... I would probably avoid using negative zeroes. I don't know why they are even supported in Java. Regards, Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
