Open enikao opened 8 years ago
It works for {0}
but not for {0.0}
because BigDecimal.equals(0)
returns false in this case.
The problem is even more funny because of java amazing super intelligence:
new BigDecimal(0.0).equals(0) == false
We might get around this by using IComparable
s compareTo
method which should return 0
in this case
C allows something like
double d[100] = {0.0};
to initialize every member of d with value 0.0. mbeddr flags an error on this: