Strange as it may look, positive and negative zeros are considered equal, hence == returns true. On the other hand, even zero is a signed number, hence min and max returns different results. This is one of my favourite gotcha! Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
posted 17 years ago
Strange. However, this behaviour is specified in API documentation.