scala/scala — pull request #347 by nadezhin (2012-04-02 06:46:07+00:00)
Title: SI-5627 BigInt.equals(Number) and BigDecimal.equals(Number) 

This is an attempt to fix the bug
SI-5627 BigInt.equals(Number) and BigDecimal.equals(Number) should implement equality in mathematical sense.

Methods "isValidDouble" and "isValidFloat" are added to to "BigInt" and "BigDecimal" classes.
"BigInt" methods are implemented with attention to performance.
"BigDecimal" methods are implemented stupidly.

I tried to fix methods "BigInt.hashCode" and "BigDecimal.hashCode" too, but found a bug SI-5640.
So I removed "hashCode" fixes from this commit, until some discussions.