"Praveen" <(E-Mail Removed)> wrote in message
> Thanks alot for the response!!!
> Another question.
> Why is the Float.MIN_VALUE not negative?
> where as Integer.MIN_VALUE is negative.
Because floating point is symmetric around zero. They essentially are a
sign-magnitude representation. For every positive value there is also a
negative value. Having Float.MIN_VALUE be the most negative value would kind
of be a waste because that would be the same as -Float.MAX_VALUE. But it is
important to know what is the closest you can get to zero without being zero
The integers are not symmetric about zero. They use two's complement. There
is 1 more negative value than positive value. Integer.MIN_VALUE = -
Integer.MAX_VALUE - 1. The number closest to zero is of course 1, so there
is no need to define a constant for it.